From e7c3d796f9198607cb8ad88b7c1cdaad2d93a704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 31 Oct 2008 08:12:19 +0000 Subject: [PATCH] honor SOFTWARE_HOME environment variables and other if they are set explicitly git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24431 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/runUnitTest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index 6a2f746ed3..5c147343ac 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -225,10 +225,10 @@ def runUnitTestList(test_list, verbosity=1, debug=0): if not test_list: print "No test to run, exiting immediately." return - os.environ['INSTANCE_HOME'] = instance_home - os.environ['SOFTWARE_HOME'] = software_home - os.environ['COPY_OF_INSTANCE_HOME'] = instance_home - os.environ['COPY_OF_SOFTWARE_HOME'] = software_home + os.environ.setdefault('INSTANCE_HOME', instance_home) + os.environ.setdefault('SOFTWARE_HOME', software_home) + os.environ.setdefault('COPY_OF_INSTANCE_HOME', instance_home) + os.environ.setdefault('COPY_OF_SOFTWARE_HOME', software_home) os.environ.setdefault('EVENT_LOG_FILE', os.path.join(tests_home, 'zLOG.log')) os.environ.setdefault('EVENT_LOG_SEVERITY', '-300') -- 2.30.9