[Buildbot-commits] buildbot/buildbot/status/web waterfall.py, 1.32, 1.33

Brian Warner warner at users.sourceforge.net
Mon Jul 21 17:52:22 UTC 2008


Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4111/buildbot/status/web

Modified Files:
	waterfall.py 
Log Message:
[project @ #228:summarize-failures.patch]
Summarize failures, using the 'failed' statistic, in the box at the
top of each waterfall column.

Original author: dustin at v.igoro.us
Date: 2008-07-21 15:03:53+00:00

Index: waterfall.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/waterfall.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- waterfall.py	21 Jul 2008 14:52:28 -0000	1.32
+++ waterfall.py	21 Jul 2008 17:52:20 -0000	1.33
@@ -6,6 +6,7 @@
 import urllib
 
 import time
+import operator
 
 from buildbot import interfaces, util
 from buildbot import version
@@ -110,8 +111,8 @@
         number = b.getNumber()
         url = path_to_build(req, b)
         text = b.getText()
-        #tests_failed = b.sumStepProperty('tests-failed')
-        #if tests_failed: text.extend(["Failed tests: %d" % tests_failed])
+        tests_failed = b.getSummaryStatistic('failed', operator.add)
+        if tests_failed: text.extend(["Failed tests: %d" % tests_failed])
         # TODO: maybe add logs?
         # TODO: add link to the per-build page at 'url'
         c = b.getColor()





More information about the Commits mailing list