Skip to content

Commit 9f3ea84

Browse files
authored
Avoid passenv=* with tox (#2784)
1 parent 5aee207 commit 9f3ea84

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.ansible.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Used for testing to avoid using one from outside repository

tox.ini

+9-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@ isolated_build = True
1919
install_command =
2020
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}
2121
usedevelop = True
22-
passenv = *
22+
# do not put * in passenv as it may break builds do to reduced isolation
23+
passenv =
24+
CI
25+
DOCKER_*
26+
GITHUB_*
27+
HOME
28+
PODMAN_*
29+
TERM
2330
setenv =
31+
ANSIBLE_CONFIG={toxinidir}/dev/null
2432
ANSIBLE_CALLABLE_WHITELIST={env:ANSIBLE_CALLABLE_WHITELIST:timer,profile_roles}
2533
ANSIBLE_DISPLAY_FAILED_STDERR=1
2634
ANSIBLE_VERBOSITY=1

0 commit comments

Comments
 (0)