[pypy-svn] r70518 - pypy/trunk/pypy/translator/benchmark

fijal at codespeak.net fijal at codespeak.net
Tue Jan 12 10:19:24 CET 2010


Author: fijal
Date: Tue Jan 12 10:19:23 2010
New Revision: 70518

Modified:
   pypy/trunk/pypy/translator/benchmark/result.py
Log:
Cut lines to 80, if more are present


Modified: pypy/trunk/pypy/translator/benchmark/result.py
==============================================================================
--- pypy/trunk/pypy/translator/benchmark/result.py	(original)
+++ pypy/trunk/pypy/translator/benchmark/result.py	Tue Jan 12 10:19:23 2010
@@ -97,8 +97,11 @@
         print new_result
         if verbose:
             print '{'
-            for line in benchmark.latest_output.splitlines(False):
+            lines = benchmark.latest_output.splitlines(False)
+            for line in lines[:80]:
                 print '\t' + line
+            if len(lines) > 80:
+                print '\t....'
             print '}'
         self.run_counts[benchmark.name] = self.run_counts.get(benchmark.name, 0) + 1
         if new_result == '-FAILED-':



More information about the Pypy-commit mailing list