[Erp5-report] r40779 romain - in /erp5/trunk/utils/erp5.appliance.test: ./ src/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 26 14:23:11 CET 2010
Author: romain
Date: Fri Nov 26 14:23:09 2010
New Revision: 40779
URL: http://svn.erp5.org?rev=40779&view=rev
Log:
Simplify test suite name
Modified:
erp5/trunk/utils/erp5.appliance.test/CHANGES.txt
erp5/trunk/utils/erp5.appliance.test/src/test.py
Modified: erp5/trunk/utils/erp5.appliance.test/CHANGES.txt
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.appliance.test/CHANGES.txt?rev=40779&r1=40778&r2=40779&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.appliance.test/CHANGES.txt [utf8] (original)
+++ erp5/trunk/utils/erp5.appliance.test/CHANGES.txt [utf8] Fri Nov 26 14:23:09 2010
@@ -2,6 +2,7 @@
----------------
- Do not translate information returned by svn info
+ - Simplify test suite name
[Romain Courteaud]
1.8.2 (2010-11-25)
Modified: erp5/trunk/utils/erp5.appliance.test/src/test.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.appliance.test/src/test.py?rev=40779&r1=40778&r2=40779&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] (original)
+++ erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] Fri Nov 26 14:23:09 2010
@@ -203,11 +203,12 @@ class ERP5TestReportHandler(FileHandler)
self.connection_helper = ConnectionHelper(url)
# register real handler to store logfile
self.logfilename = tempfile.mkstemp()[1]
+ self.machine_id = machine_id
FileHandler.__init__(self, self.logfilename)
# report that test is running
self.suite_name = suite_name
self.connection_helper.POST('TestResultModule_reportRunning', dict(
- test_suite=self.suite_name + ' ' + machine_id ,
+ test_suite=self.suite_name,
test_report_id=self.test_id,
))
@@ -225,7 +226,10 @@ class ERP5TestReportHandler(FileHandler)
distribution_info = '\n'.join(getDistributionList())
tl = open(templog, 'w')
tl.write(TB_SEP + '\n')
- tl.write(distribution_info+'\n')
+ tl.write('%s\n' % self.machine_id)
+ tl.write(distribution_info+'\n\n')
+ if len(log_lines) > 900:
+ tl.write('...[truncated]... \n\n')
for log_line in log_lines[-900:]:
starts = log_line.startswith
if starts('Ran') or starts('FAILED') or starts('OK') or starts(TB_SEP):
More information about the Erp5-report
mailing list