summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorMatt Clay <mclay@redhat.com>2020-08-26 06:23:44 +0200
committerGitHub <noreply@github.com>2020-08-26 06:23:44 +0200
commitf5b6df14ab2e691f5f059fff0fcf59449132549f (patch)
treeccd8f140ff26efc82add95d5dd113ca8ac5638eb /test/lib
parentpowershell - fix quoting values (#71411) (diff)
downloadansible-f5b6df14ab2e691f5f059fff0fcf59449132549f.tar.xz
ansible-f5b6df14ab2e691f5f059fff0fcf59449132549f.zip
Fix ansible-test coverage traceback. (#71446)
* Add integration test for ansible-test coverage. * Fix ansible-test coverage traceback. * Fix coverage reporting on Python 2.6.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/ansible_test/_internal/cli.py1
-rw-r--r--test/lib/ansible_test/_internal/coverage/__init__.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/cli.py b/test/lib/ansible_test/_internal/cli.py
index 23d4acfb27..9fe35c9d3b 100644
--- a/test/lib/ansible_test/_internal/cli.py
+++ b/test/lib/ansible_test/_internal/cli.py
@@ -926,6 +926,7 @@ def add_environments(parser, isolated_delegation=True):
remote_provider=None,
remote_aws_region=None,
remote_terminate=None,
+ remote_endpoint=None,
python_interpreter=None,
)
diff --git a/test/lib/ansible_test/_internal/coverage/__init__.py b/test/lib/ansible_test/_internal/coverage/__init__.py
index 481eab8cd0..88bb984313 100644
--- a/test/lib/ansible_test/_internal/coverage/__init__.py
+++ b/test/lib/ansible_test/_internal/coverage/__init__.py
@@ -104,7 +104,7 @@ def run_coverage(args, output_file, command, cmd): # type: (CoverageConfig, str
env = common_environment()
env.update(dict(COVERAGE_FILE=output_file))
- cmd = ['python', '-m', 'coverage', command, '--rcfile', COVERAGE_CONFIG_PATH] + cmd
+ cmd = ['python', '-m', 'coverage.__main__', command, '--rcfile', COVERAGE_CONFIG_PATH] + cmd
intercept_command(args, target_name='coverage', env=env, cmd=cmd, disable_coverage=True)