aboutsummaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2018-02-16 18:31:56 -0500
committerKeith Burns <alagalah@gmail.com>2018-02-19 21:51:59 +0000
commitcfcf2f476a7be442844523e99f1867c9386c043e (patch)
treee85834864cd2ee44c090693f5cd652bb35a544b3 /test/framework.py
parentfa957142beae75e4cf881f7e861cefd97f034a83 (diff)
make test: Add VPP VCL cut-thru test.
Change-Id: Id3ec196bfeb90b141123adee97f15d9712351680 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
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,