[Erp5-report] r37132 luke - /erp5/trunk/products/ERP5/Tool/TemplateTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 15 14:56:28 CEST 2010
Author: luke
Date: Thu Jul 15 14:56:27 2010
New Revision: 37132
URL: http://svn.erp5.org?rev=37132&view=rev
Log:
- log exact invocation of external program
- print informative message to developer
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=37132&r1=37131&r2=37132&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py [utf8] Thu Jul 15 14:56:27 2010
@@ -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)
More information about the Erp5-report
mailing list