Use ANSIBLE_TEST_ prefixed env var in ansible-test

pull/82992/head
Matt Clay 1 month ago
parent 40a1bfa1c1
commit 88ddae175f

@ -105,7 +105,6 @@ def ansible_environment(args: CommonConfig, color: bool = True, ansible_config:
ANSIBLE_HOST_KEY_CHECKING='false',
ANSIBLE_RETRY_FILES_ENABLED='false',
ANSIBLE_CONFIG=ansible_config,
ANSIBLE_LIB_ROOT=ANSIBLE_LIB_ROOT, # used by the coverage injector
ANSIBLE_LIBRARY='/dev/null',
ANSIBLE_DEVEL_WARNING='false', # Don't show warnings that CI is running devel
PYTHONPATH=get_ansible_python_path(args),
@ -116,6 +115,8 @@ def ansible_environment(args: CommonConfig, color: bool = True, ansible_config:
# enabled even when not using code coverage to surface warnings when worker processes do not exit cleanly
ANSIBLE_WORKER_SHUTDOWN_POLL_COUNT='100',
ANSIBLE_WORKER_SHUTDOWN_POLL_DELAY='0.1',
# ansible-test specific environment variables require an 'ANSIBLE_TEST_' prefix to distinguish them from ansible-core env vars defined by config
ANSIBLE_TEST_ANSIBLE_LIB_ROOT=ANSIBLE_LIB_ROOT, # used by the coverage injector
)
if isinstance(args, IntegrationConfig) and args.coverage:

@ -14,7 +14,7 @@ def main():
name = os.path.basename(__file__)
args = [sys.executable]
ansible_lib_root = os.environ.get('ANSIBLE_LIB_ROOT')
ansible_lib_root = os.environ.get('ANSIBLE_TEST_ANSIBLE_LIB_ROOT')
coverage_config = os.environ.get('COVERAGE_CONF')
coverage_output = os.environ.get('COVERAGE_FILE')

Loading…
Cancel
Save