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

arigo at codespeak.net arigo at codespeak.net
Fri May 1 19:18:50 CEST 2009


Author: arigo
Date: Fri May  1 19:18:49 2009
New Revision: 64951

Modified:
   pypy/build/bot2/pypybuildbot/summary.py
Log:
Force "failure" to be computed and shown.
This is a temporary fix to avoid hiding a real failure.


Modified: pypy/build/bot2/pypybuildbot/summary.py
==============================================================================
--- pypy/build/bot2/pypybuildbot/summary.py	(original)
+++ pypy/build/bot2/pypybuildbot/summary.py	Fri May  1 19:18:49 2009
@@ -132,8 +132,8 @@
                 ts = step.getTimes()
                 if ts[0] is not None and ts[1] is not None:
                     pytest_elapsed += ts[1]-ts[0]
-            elif (failure is None and
-                  step.getResults()[0] in (FAILURE, EXCEPTION)):
+            if (failure is None and
+                step.getResults()[0] in (FAILURE, EXCEPTION)):
                 failure = ' '.join(step.getText())
 
         run_info = {'URL': run_url, 'elapsed': pytest_elapsed or None,
@@ -148,12 +148,12 @@
                         outcome_set.populate_one(stepName+' aborted', '!', "")
                     outcome_set.populate(resultLog)
 
-        if not someresult:
+        if not someresult or failure is not None:
             if failure:
                 name = '"%s"' % failure # quote
             else:
                 name = '<run>'
-            outcome_set.populate_one(name, '!', "no logs from the test run")
+            outcome_set.populate_one(name, '!')
 
         return outcome_set
         



More information about the Pypy-commit mailing list