Pass parent envvars to test executables.

This commit is contained in:
Jussi Pakkanen 2013-10-20 23:37:27 +03:00
parent 92ff302a14
commit 7005729418
1 changed files with 3 additions and 1 deletions

View File

@ -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