summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2019-10-17 22:03:21 +0200
committerMatt Clay <matt@mystile.com>2019-10-18 02:40:34 +0200
commit6be4741f722eb2d12c12bd35b16d57e3bc5410e4 (patch)
tree8d52deded8e4a3180a1c6c4b108473158e5031d6 /test/lib
parentFix SSL protocol references in mqtt module. (diff)
downloadansible-6be4741f722eb2d12c12bd35b16d57e3bc5410e4.tar.xz
ansible-6be4741f722eb2d12c12bd35b16d57e3bc5410e4.zip
Fix ansible-test env var mixing running commands.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/ansible_test/_internal/util_common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/util_common.py b/test/lib/ansible_test/_internal/util_common.py
index f4035ee934..5be20ee749 100644
--- a/test/lib/ansible_test/_internal/util_common.py
+++ b/test/lib/ansible_test/_internal/util_common.py
@@ -335,6 +335,8 @@ def intercept_command(args, cmd, target_name, env, capture=False, data=None, cwd
"""
if not env:
env = common_environment()
+ else:
+ env = env.copy()
cmd = list(cmd)
version = python_version or args.python_version