diff --git a/slapos/recipe/erp5_test/test.py b/slapos/recipe/erp5_test/test.py index dd05f96b2dbc10f915d3d362b928cea930aa34e2..249c871c389ca6fd79ebb8fbf01fbc7a12b3c135 100644 --- a/slapos/recipe/erp5_test/test.py +++ b/slapos/recipe/erp5_test/test.py @@ -53,7 +53,7 @@ def runUnitTest(args): d = args[0] env['OPENSSL_BINARY'] = d['openssl_binary'] 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['REAL_INSTANCE_HOME'] = d['instance_home'] # Deal with Shebang size limitation