Skip to content

Commit c09fe6a

Browse files
author
buildbot
committed
Added missing include to buildbot master.cfg.
- Legacy-Id: 9258
1 parent 724b590 commit c09fe6a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

buildbot/masters/datatracker/master.cfg

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- python -*-
22
# ex: set syntax=python:
3+
import re
34
from buildbot_passwords import *
45

56

@@ -98,9 +99,9 @@ class UnitTest(WarningCountingShellCommand):
9899
"skipped": "(?:OK|FAILED).*\skipped=(\d+)",
99100
"failed": "FAILED.*failures\=(\d+)",
100101
"errors": "FAILED.*errors\=(\d+)",
101-
"template_coverage":" *Template coverage: +([0-9.]+%)",
102-
"url_coverage": " *Url coverage: +([0-9.]+%)",
103-
"code_coverage": " *Code coverage: +([0-9.]+%)",
102+
"template_coverage":" +Template coverage: +([0-9.]+%)",
103+
"url_coverage": " +Url coverage: +([0-9.]+%)",
104+
"code_coverage": " +Code coverage: +([0-9.]+%)",
104105
}
105106

106107
def setTestResults(self, **kwargs):
@@ -139,12 +140,13 @@ class UnitTest(WarningCountingShellCommand):
139140
description = description[:] # make a private copy
140141
for name in self.step_status.statistics:
141142
value = self.step_status.getStatistic(name)
143+
displayName = name.replace('_', ' ').capitalize()
142144
if type(value) is float: # this is run-time
143-
description.append('%.2fs %s' % (value, name))
145+
description.append('%.2fs %s' % (value, displayName))
144146
elif type(value) is int:
145-
description.append('%d %s' % (value, name))
147+
description.append('%d %s' % (value, displayName))
146148
else:
147-
description.append('%s %s' % (value, name))
149+
description.append('%s %s' % (value, displayName))
148150
return description
149151

150152

@@ -162,7 +164,6 @@ factory.addStep(SVN(
162164
repourl=Interpolate('https://svn.tools.ietf.org/svn/tools/ietfdb/%(src::branch:~trunk)s'),
163165
descriptionSuffix=[Interpolate('%(src::branch)s %(src::revision)s')],
164166
))
165-
factory.addStep(RemovePYCs(workdir=Interpolate('build/%(src::branch)s')))
166167
factory.addStep(ShellCommand(
167168
descriptionDone="install requirements",
168169
workdir=Interpolate('build/%(src::branch)s'),

0 commit comments

Comments
 (0)