[Erp5-report] r37142 luke - /erp5/trunk/products/ERP5/Tool/TemplateTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 15 16:56:28 CEST 2010
Author: luke
Date: Thu Jul 15 16:56:26 2010
New Revision: 37142
URL: http://svn.erp5.org?rev=37142&view=rev
Log:
- generate and pass list of locations of Business Templates 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=37142&r1=37141&r2=37142&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] Thu Jul 15 16:56:26 2010
@@ -552,6 +552,7 @@ class TemplateTool (BaseTool):
# XXX: should check if the unit test file is configured in the BT
site_configuration = getConfiguration()
from Products.ERP5Type.tests.runUnitTest import getUnitTestFile
+ import Products.ERP5
if RESPONSE is not None:
outfile = RESPONSE
elif REQUEST is not None:
@@ -570,6 +571,14 @@ class TemplateTool (BaseTool):
test_cmd_args += ['--products_path', ','.join(
site_configuration.products)]
test_cmd_args += ['--sys_path', ','.join(current_sys_path)]
+ # to find erp5_core, erp5_xhtml_style and similar
+ bt5_path_list = [os.path.join(os.path.split(Products.ERP5.__file__)[0],
+ 'bootstrap')]
+ ## XXX-TODO: requires that asRepository works without security, maybe
+ ## with special key?
+ # bt5_path_list.append(self.absolute_url() + '/asRepository/')
+ bt5_path_list.append(os.path.join(site_configuration.instancehome, 'bt5'))
+ test_cmd_args += ['--bt5_path', ','.join(bt5_path_list)]
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