From 38f131d5d181081085adefa9755fb801f8e7b75e Mon Sep 17 00:00:00 2001 From: dustin Date: Mon, 21 Jul 2008 20:03:53 +0100 Subject: [PATCH] #228:summarize-failures.patch Summarize failures, using the 'failed' statistic, in the box at the top of each waterfall column. --- buildbot/status/web/waterfall.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildbot/status/web/waterfall.py b/buildbot/status/web/waterfall.py index d7ce253..3538c6d 100644 --- a/buildbot/status/web/waterfall.py +++ b/buildbot/status/web/waterfall.py @@ -6,6 +6,7 @@ from twisted.web import html import urllib import time +import operator from buildbot import interfaces, util from buildbot import version @@ -110,8 +111,8 @@ class BuildTopBox(components.Adapter): 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() -- 2.11.4.GIT