Commit 7171f365 authored by Ivan Tyagov's avatar Ivan Tyagov

When runUnitTest is called from erp5 testnode environt can miss PATH. Try to...

When runUnitTest is called from erp5 testnode environt can miss PATH. Try to be more defensive in this case.
parent 9152d2f4
...@@ -53,7 +53,7 @@ def runUnitTest(args): ...@@ -53,7 +53,7 @@ def runUnitTest(args):
d = args[0] d = args[0]
env['OPENSSL_BINARY'] = d['openssl_binary'] env['OPENSSL_BINARY'] = d['openssl_binary']
env['TEST_CA_PATH'] = d['test_ca_path'] env['TEST_CA_PATH'] = d['test_ca_path']
env['PATH'] = ':'.join([d['prepend_path']] + os.environ['PATH'].split(':')) env['PATH'] = ':'.join([d['prepend_path']] + os.environ.get('PATH', '').split(':'))
env['INSTANCE_HOME'] = d['instance_home'] env['INSTANCE_HOME'] = d['instance_home']
env['REAL_INSTANCE_HOME'] = d['instance_home'] env['REAL_INSTANCE_HOME'] = d['instance_home']
# Deal with Shebang size limitation # Deal with Shebang size limitation
......
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