Commit e8a4f1eb authored by Łukasz Nowak's avatar Łukasz Nowak

- pass products path used on running site to test runner


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37136 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2b8a96a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment