From b32c6e8b4022f8547943828044261684accd65d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 20 May 2010 13:24:13 +0000 Subject: [PATCH] Initialize the test instance home only when this script is executed, not imported git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35489 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/runUnitTest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index a9300457b2..151b977946 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -258,8 +258,6 @@ instance_home = os.path.join(real_instance_home, 'unit_test') real_tests_home = os.path.join(real_instance_home, 'tests') tests_home = os.path.join(instance_home, 'tests') -initializeInstanceHome(tests_framework_home, real_instance_home, instance_home) - class ERP5TypeTestLoader(unittest.TestLoader): """Load test cases from the name passed on the command line. @@ -667,6 +665,8 @@ def main(): os.environ["zeo_server"] = arg elif opt == "--zserver": os.environ["zserver"] = arg + + initializeInstanceHome(tests_framework_home, real_instance_home, instance_home) result = runUnitTestList(test_list=args, verbosity=verbosity, -- 2.30.9