mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Update handling of the non_local test alias.
Previously the alias disabled all code coverage collection. Now it only disables Ansible module code coverage collection.
This commit is contained in:
@@ -24,12 +24,12 @@ def pytest_configure():
|
||||
coverage_instances.append(obj)
|
||||
|
||||
if not coverage_instances:
|
||||
coverage_config = os.environ.get('_ANSIBLE_COVERAGE_CONFIG')
|
||||
coverage_config = os.environ.get('COVERAGE_CONF')
|
||||
|
||||
if not coverage_config:
|
||||
return
|
||||
|
||||
coverage_output = os.environ.get('_ANSIBLE_COVERAGE_OUTPUT')
|
||||
coverage_output = os.environ.get('COVERAGE_FILE')
|
||||
|
||||
if not coverage_output:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user