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)
|
description = WarningCountingShellCommand.describe(self, done)
|
||||||
if done:
|
if done:
|
||||||
description = description[:] # make a private copy
|
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", ]:
|
||||||
value = self.step_status.getStatistic(name)
|
if name in self.step_status.statistics:
|
||||||
displayName = name.replace('_', ' ').capitalize()
|
value = self.step_status.getStatistic(name)
|
||||||
if type(value) is float: # this is run-time
|
displayName = name.replace('_', ' ').capitalize()
|
||||||
description.append('%.2fs %s' % (value, displayName))
|
if type(value) is float: # this is run-time
|
||||||
elif type(value) is int:
|
description.append('%s: %.2fs' % (displayName, value))
|
||||||
description.append('%d %s' % (value, displayName))
|
elif type(value) is int:
|
||||||
else:
|
description.append('%s: %d' % (displayName, value))
|
||||||
description.append('%s %s' % (value, displayName))
|
else:
|
||||||
|
description.append('%s: %s' % (displayName, value))
|
||||||
return description
|
return description
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue