[pypy-svn] r11833 - pypy/dist/pypy/tool/pytest

hpk at codespeak.net hpk at codespeak.net
Tue May 3 11:17:35 CEST 2005


Author: hpk
Date: Tue May  3 11:17:34 2005
New Revision: 11833

Modified:
   pypy/dist/pypy/tool/pytest/htmlreport.py
Log:
try harder to get a meaningful revision number: 
skip timeouted results if we have non-timeouted 
ones 



Modified: pypy/dist/pypy/tool/pytest/htmlreport.py
==============================================================================
--- pypy/dist/pypy/tool/pytest/htmlreport.py	(original)
+++ pypy/dist/pypy/tool/pytest/htmlreport.py	Tue May  3 11:17:34 2005
@@ -56,11 +56,19 @@
             maxresult = None
             for res in resultlist: 
                 resrev = res['pypy-revision']
-                if resrev != 'unknown': 
+                if resrev != 'unknown' and not res.istimeout(): 
                     if resrev > maxrev: 
                         maxrev = resrev 
                         maxresult = res 
-            assert maxresult 
+            if not maxresult: 
+                for res in resultlist: 
+                    resrev = res['pypy-revision']
+                    if resrev != 'unknown': 
+                        if resrev > maxrev: 
+                            maxrev = resrev
+                            maxresult = res 
+            assert maxresult
+
             if not checkerfunc or checkerfunc(maxresult): 
                 l.append(maxresult) 
         return l 



More information about the Pypy-commit mailing list