Commit 470306ee authored by Łukasz Nowak's avatar Łukasz Nowak

- log exact invocation of external program

 - print informative message to developer


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37132 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b748c967
......@@ -562,6 +562,15 @@ class TemplateTool (BaseTool):
test_cmd_args = [sys.executable, getUnitTestFile()]
test_cmd_args += ['--erp5_sql_connection_string', sql_connection_string]
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
# case of test failures
invoke_command_message = 'Running tests using command: %r'% test_cmd_args
# as it is like using external interface, log what is send there
LOG('TemplateTool.runUnitTestList', INFO, invoke_command_message)
# inform developer how test are invoked
outfile.write(invoke_command_message + '\n')
outfile.flush()
process = subprocess.Popen(test_cmd_args,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
......
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