[Erp5-report] r37137 luke - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 15 15:46:54 CEST 2010
Author: luke
Date: Thu Jul 15 15:46:51 2010
New Revision: 37137
URL: http://svn.erp5.org?rev=37137&view=rev
Log:
- allow to extend sys.path with passed from command line
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=37137&r1=37136&r2=37137&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py [utf8] Thu Jul 15 15:46:51 2010
@@ -115,9 +115,10 @@ Options:
Make ZServer listen on given host:port
If used with --activity_node=, this can be a
comma-separated list of addresses.
-
--products_path=path,path Comma-separated list of products paths locations
which shall be used in test environment.
+ --sys_path=path,path Comma-separated list of paths which will be used to
+ extend sys.path
When no unit test is specified, only activities are processed.
"""
@@ -618,6 +619,7 @@ def main():
"zeo_server=",
"zserver=",
"products_path=",
+ "sys_path="
])
except getopt.GetoptError, msg:
usage(sys.stderr, msg)
@@ -709,6 +711,8 @@ def main():
os.environ["zserver"] = arg
elif opt == "--products_path":
os.environ["products_path"] = arg
+ elif opt == "--sys_path":
+ sys.path.extend(arg.split(','))
initializeInstanceHome(tests_framework_home, real_instance_home, instance_home)
More information about the Erp5-report
mailing list