Tweaked the UnitTest description of buildbot master.cfg.
- Legacy-Id: 9260
This commit is contained in:
parent
d5b483a822
commit
5fd5e56fcc
|
@ -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:
|
||||
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('%.2fs %s' % (value, displayName))
|
||||
description.append('%s: %.2fs' % (displayName, value))
|
||||
elif type(value) is int:
|
||||
description.append('%d %s' % (value, displayName))
|
||||
description.append('%s: %d' % (displayName, value))
|
||||
else:
|
||||
description.append('%s %s' % (value, displayName))
|
||||
description.append('%s: %s' % (displayName, value))
|
||||
return description
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue