[Erp5-report] r35489 jerome - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 20 15:24:16 CEST 2010


Author: jerome
Date: Thu May 20 15:24:13 2010
New Revision: 35489

URL: http://svn.erp5.org?rev=35489&view=rev
Log:
Initialize the test instance home only when this script is executed, not imported

Modified:
    erp5/trunk/products/ERP5Type/tests/runUnitTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runUnitTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runUnitTest.py?rev=35489&r1=35488&r2=35489&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] Thu May 20 15:24:13 2010
@@ -258,8 +258,6 @@
 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 @@
       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,




More information about the Erp5-report mailing list