aboutsummaryrefslogtreecommitdiff
path: root/meson_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'meson_test.py')
-rwxr-xr-xmeson_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson_test.py b/meson_test.py
index e8b8a12..9d18979 100755
--- a/meson_test.py
+++ b/meson_test.py
@@ -58,8 +58,10 @@ def run_single_test(wrap, test):
else:
cmd = wrap + cmd + test.cmd_args
starttime = time.time()
+ child_env = os.environ.copy()
+ child_env.update(test.env)
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- env=test.env)
+ env=child_env)
(stdo, stde) = p.communicate()
endtime = time.time()
duration = endtime - starttime