summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py
index 288bd955160..5e0308cf54b 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -1130,12 +1130,14 @@ class Worker(Thread):
self.logger = logger
self.args = args
self.result = None
+ self.env = {}
super(Worker, self).__init__()
def run(self):
executable = self.args[0]
self.logger.debug("Running executable w/args `%s'" % self.args)
env = os.environ.copy()
+ env.update(self.env)
env["CK_LOG_FILE_NAME"] = "-"
self.process = subprocess.Popen(
self.args, shell=False, env=env, preexec_fn=os.setpgrp,