Skip to content

Commit 5fd5e56

Browse files
author
buildbot
committed
Tweaked the UnitTest description of buildbot master.cfg.
- Legacy-Id: 9260
1 parent d5b483a commit 5fd5e56

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

buildbot/masters/datatracker/master.cfg

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,16 @@ class UnitTest(WarningCountingShellCommand):
138138
description = WarningCountingShellCommand.describe(self, done)
139139
if done:
140140
description = description[:] # make a private copy
141-
for name in self.step_status.statistics:
142-
value = self.step_status.getStatistic(name)
143-
displayName = name.replace('_', ' ').capitalize()
144-
if type(value) is float: # this is run-time
145-
description.append('%.2fs %s' % (value, displayName))
146-
elif type(value) is int:
147-
description.append('%d %s' % (value, displayName))
148-
else:
149-
description.append('%s %s' % (value, displayName))
141+
for name in ["time", "total", "skipped", "failed", "errors", "template_coverage", "url_coverage", "code_coverage", ]:
142+
if name in self.step_status.statistics:
143+
value = self.step_status.getStatistic(name)
144+
displayName = name.replace('_', ' ').capitalize()
145+
if type(value) is float: # this is run-time
146+
description.append('%s: %.2fs' % (displayName, value))
147+
elif type(value) is int:
148+
description.append('%s: %d' % (displayName, value))
149+
else:
150+
description.append('%s: %s' % (displayName, value))
150151
return description
151152

152153

0 commit comments

Comments
 (0)