summaryrefslogtreecommitdiff
path: root/test/units/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/units/conftest.py')
-rw-r--r--test/units/conftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/conftest.py b/test/units/conftest.py
index c7163201d0..0fb7955081 100644
--- a/test/units/conftest.py
+++ b/test/units/conftest.py
@@ -29,6 +29,11 @@ def pytest_configure():
if not coverage_config:
return
+ coverage_output = os.environ.get('_ANSIBLE_COVERAGE_OUTPUT')
+
+ if not coverage_output:
+ return
+
cov = coverage.Coverage(config_file=coverage_config)
coverage_instances.append(cov)
else: