From 5fd5e56fcc3263cbca5eb944dc68accb10ca6f53 Mon Sep 17 00:00:00 2001 From: buildbot Date: Thu, 19 Mar 2015 23:28:57 +0000 Subject: [PATCH] Tweaked the UnitTest description of buildbot master.cfg. - Legacy-Id: 9260 --- buildbot/masters/datatracker/master.cfg | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/buildbot/masters/datatracker/master.cfg b/buildbot/masters/datatracker/master.cfg index b5ff0caf5..aefa18115 100644 --- a/buildbot/masters/datatracker/master.cfg +++ b/buildbot/masters/datatracker/master.cfg @@ -138,15 +138,16 @@ class UnitTest(WarningCountingShellCommand): description = WarningCountingShellCommand.describe(self, done) if done: description = description[:] # make a private copy - for name in self.step_status.statistics: - value = self.step_status.getStatistic(name) - displayName = name.replace('_', ' ').capitalize() - if type(value) is float: # this is run-time - description.append('%.2fs %s' % (value, displayName)) - elif type(value) is int: - description.append('%d %s' % (value, displayName)) - else: - description.append('%s %s' % (value, displayName)) + for name in ["time", "total", "skipped", "failed", "errors", "template_coverage", "url_coverage", "code_coverage", ]: + if name in self.step_status.statistics: + value = self.step_status.getStatistic(name) + displayName = name.replace('_', ' ').capitalize() + if type(value) is float: # this is run-time + description.append('%s: %.2fs' % (displayName, value)) + elif type(value) is int: + description.append('%s: %d' % (displayName, value)) + else: + description.append('%s: %s' % (displayName, value)) return description