Commit 65f03f21 authored by Łukasz Nowak's avatar Łukasz Nowak

- pass sys.path of currently running system extended with location of test suites


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37138 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 186b1c26
......@@ -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
......
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