[Erp5-report] r41771 jm - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Dec 26 18:55:21 CET 2010


Author: jm
Date: Sun Dec 26 18:55:21 2010
New Revision: 41771

URL: http://svn.erp5.org?rev=41771&view=rev
Log:
runUnitTest: add option to specify the location of the unit test instance

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=41771&r1=41770&r2=41771&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] Sun Dec 26 18:55:21 2010
@@ -119,6 +119,8 @@ Options:
                              which shall be used in test environment.
   --sys_path=path,path       Comma-separated list of paths which will be used to
                              extend sys.path
+  --instance_home=PATH       Create/use test instance in given path
+
 When no unit test is specified, only activities are processed.
 """
 
@@ -603,6 +605,7 @@ def main():
         "zserver=",
         "products_path=",
         "sys_path=",
+        "instance_home=",
         ])
   except getopt.GetoptError, msg:
     usage(sys.stderr, msg)
@@ -697,6 +700,8 @@ def main():
       os.environ["PRODUCTS_PATH"] = arg
     elif opt == "--sys_path":
       sys.path.extend(arg.split(','))
+    elif opt == "instance_home=":
+      instance_home = os.path.abspath(arg)
 
   global tests_home
   os.environ['INSTANCE_HOME'] = instance_home



More information about the Erp5-report mailing list