From 9f3ea8459c42dd127ddfb1df8a3eda16ddab9c1f Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 20 Aug 2020 07:52:11 +0100 Subject: [PATCH] Avoid passenv=* with tox (#2784) --- .ansible.cfg | 1 + tox.ini | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .ansible.cfg diff --git a/.ansible.cfg b/.ansible.cfg new file mode 100644 index 000000000..1ee5b13f3 --- /dev/null +++ b/.ansible.cfg @@ -0,0 +1 @@ +# Used for testing to avoid using one from outside repository diff --git a/tox.ini b/tox.ini index d1ca30f40..1c48a79d2 100644 --- a/tox.ini +++ b/tox.ini @@ -19,8 +19,16 @@ isolated_build = True install_command = python -c 'import subprocess, sys; pip_inst_cmd = sys.executable, "-m", "pip", "install"; subprocess.check_call(pip_inst_cmd + ("pip<19.1", )); subprocess.check_call(pip_inst_cmd + tuple(sys.argv[1:]))' {opts} {packages} usedevelop = True -passenv = * +# do not put * in passenv as it may break builds do to reduced isolation +passenv = + CI + DOCKER_* + GITHUB_* + HOME + PODMAN_* + TERM setenv = + ANSIBLE_CONFIG={toxinidir}/dev/null ANSIBLE_CALLABLE_WHITELIST={env:ANSIBLE_CALLABLE_WHITELIST:timer,profile_roles} ANSIBLE_DISPLAY_FAILED_STDERR=1 ANSIBLE_VERBOSITY=1