Add support for ansible-test --coverage-check. (#53573)

This commit is contained in:
Matt Clay 2019-03-11 15:13:09 -07:00 committed by GitHub
parent 9ff25c0167
commit 887ab35656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 49 additions and 13 deletions

View file

@ -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: