Commit 1768574e authored by Jérome Perrin's avatar Jérome Perrin

testnode: spawn processes with environment defined in configuration file

Only $PATH was set
parent ec671f4a
......@@ -345,7 +345,7 @@ class SlapOSControler(object):
self.log("SlapOSControler.runSoftwareRelease")
cpu_count = os.sysconf("SC_NPROCESSORS_ONLN")
os.putenv('MAKEFLAGS', '-j%s' % cpu_count)
os.environ['PATH'] = environment['PATH']
os.environ.update(environment)
# a SR may fail for number of reasons (incl. network failures)
# so be tolerant and run it a few times before giving up
for runs in range(0, MAX_SR_RETRIES):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment