[pypy-svn] r59097 - pypy/build/bot2/pypybuildbot

pedronis at codespeak.net pedronis at codespeak.net
Tue Oct 14 17:19:51 CEST 2008


Author: pedronis
Date: Tue Oct 14 17:19:49 2008
New Revision: 59097

Modified:
   pypy/build/bot2/pypybuildbot/summary.py
Log:
trying to sort ! failures first



Modified: pypy/build/bot2/pypybuildbot/summary.py
==============================================================================
--- pypy/build/bot2/pypybuildbot/summary.py	(original)
+++ pypy/build/bot2/pypybuildbot/summary.py	Tue Oct 14 17:19:49 2008
@@ -279,12 +279,20 @@
         lines.append([bars(), "\n"])
         
         failed = set()
-        for rev, outcome_set in by_rev:            
-            failed.update(outcome_set.failed)
+        exploded = set()
+        for rev, outcome_set in by_rev:
+            for failure in outcome_set.failed:
+                letter = outcome_set.get_outcome(failure)
+                if letter == '!':
+                    exploded.add(failure)
+                failed.add(failure)
 
         colwidths = colsizes(failed)
 
-        for failure in sorted(failed):
+        def sorting(x):
+            return (x not in exploded, x)
+
+        for failure in sorted(failed, key=sorting):
             line = []
             for rev, outcome_set in by_rev:
                 letter = outcome_set.get_outcome(failure)



More information about the Pypy-commit mailing list