[Erp5-report] r37138 luke - /erp5/trunk/products/ERP5/Tool/TemplateTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 15 15:47:55 CEST 2010
Author: luke
Date: Thu Jul 15 15:47:54 2010
New Revision: 37138
URL: http://svn.erp5.org?rev=37138&view=rev
Log:
- pass sys.path of currently running system extended with location of test suites
Modified:
erp5/trunk/products/ERP5/Tool/TemplateTool.py
Modified: erp5/trunk/products/ERP5/Tool/TemplateTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/TemplateTool.py?rev=37138&r1=37137&r2=37138&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] Thu Jul 15 15:47:54 2010
@@ -560,11 +560,16 @@ class TemplateTool (BaseTool):
outfile = StringIO()
if RESPONSE is not None:
RESPONSE.setHeader('Content-type', 'text/plain')
+ current_sys_path = sys.path
+ # add path with tests
+ current_sys_path.append(os.path.join(site_configuration.instancehome, 'tests'))
+
test_cmd_args = [sys.executable, getUnitTestFile()]
test_cmd_args += ['--erp5_sql_connection_string', sql_connection_string]
# pass currently used product path to test runner
test_cmd_args += ['--products_path', ','.join(
site_configuration.products)]
+ test_cmd_args += ['--sys_path', ','.join(current_sys_path)]
test_cmd_args += test_list
# prepare message - intentionally without any additional formatting, as
# only developer will read it, and they will have to understand issues in
More information about the Erp5-report
mailing list