[Erp5-report] r37136 luke - /erp5/trunk/products/ERP5/Tool/TemplateTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 15 15:27:22 CEST 2010
Author: luke
Date: Thu Jul 15 15:27:21 2010
New Revision: 37136
URL: http://svn.erp5.org?rev=37136&view=rev
Log:
- pass products path used on running site to test runner
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=37136&r1=37135&r2=37136&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] Thu Jul 15 15:27:21 2010
@@ -550,6 +550,7 @@ class TemplateTool (BaseTool):
"""
# XXX: should check for file presence before trying to execute.
# XXX: should check if the unit test file is configured in the BT
+ site_configuration = getConfiguration()
from Products.ERP5Type.tests.runUnitTest import getUnitTestFile
if RESPONSE is not None:
outfile = RESPONSE
@@ -561,6 +562,9 @@ class TemplateTool (BaseTool):
RESPONSE.setHeader('Content-type', 'text/plain')
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 += 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