[Neo-report] r2784 jm - /trunk/tools/matrix

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 15 12:39:08 CEST 2011


Author: jm
Date: Wed Jun 15 12:39:07 2011
New Revision: 2784

Log:
matrix: fix returned value by 'buildReport'

Modified:
    trunk/tools/matrix

Modified: trunk/tools/matrix
==============================================================================
--- trunk/tools/matrix [iso-8859-1] (original)
+++ trunk/tools/matrix [iso-8859-1] Wed Jun 15 12:39:07 2011
@@ -150,8 +150,10 @@ class MatrixImportBenchmark(BenchmarkRun
             report += sep
         report += self.error_log
         if failures:
-            return '%d failures' % (failures, )
-        return '%.1f KB/s' % (sum(speedlist) / len(speedlist))
+            info = '%d failures' % (failures, )
+        else:
+            info = '%.1f KB/s' % (sum(speedlist) / len(speedlist))
+        return info, report
 
 def main(args=None):
     MatrixImportBenchmark().run()




More information about the Neo-report mailing list