Added missing include to buildbot master.cfg.
- Legacy-Id: 9258
This commit is contained in:
parent
724b590f51
commit
c09fe6ae13
|
@ -1,5 +1,6 @@
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
# ex: set syntax=python:
|
# ex: set syntax=python:
|
||||||
|
import re
|
||||||
from buildbot_passwords import *
|
from buildbot_passwords import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -98,9 +99,9 @@ class UnitTest(WarningCountingShellCommand):
|
||||||
"skipped": "(?:OK|FAILED).*\skipped=(\d+)",
|
"skipped": "(?:OK|FAILED).*\skipped=(\d+)",
|
||||||
"failed": "FAILED.*failures\=(\d+)",
|
"failed": "FAILED.*failures\=(\d+)",
|
||||||
"errors": "FAILED.*errors\=(\d+)",
|
"errors": "FAILED.*errors\=(\d+)",
|
||||||
"template_coverage":" *Template coverage: +([0-9.]+%)",
|
"template_coverage":" +Template coverage: +([0-9.]+%)",
|
||||||
"url_coverage": " *Url coverage: +([0-9.]+%)",
|
"url_coverage": " +Url coverage: +([0-9.]+%)",
|
||||||
"code_coverage": " *Code coverage: +([0-9.]+%)",
|
"code_coverage": " +Code coverage: +([0-9.]+%)",
|
||||||
}
|
}
|
||||||
|
|
||||||
def setTestResults(self, **kwargs):
|
def setTestResults(self, **kwargs):
|
||||||
|
@ -139,12 +140,13 @@ class UnitTest(WarningCountingShellCommand):
|
||||||
description = description[:] # make a private copy
|
description = description[:] # make a private copy
|
||||||
for name in self.step_status.statistics:
|
for name in self.step_status.statistics:
|
||||||
value = self.step_status.getStatistic(name)
|
value = self.step_status.getStatistic(name)
|
||||||
|
displayName = name.replace('_', ' ').capitalize()
|
||||||
if type(value) is float: # this is run-time
|
if type(value) is float: # this is run-time
|
||||||
description.append('%.2fs %s' % (value, name))
|
description.append('%.2fs %s' % (value, displayName))
|
||||||
elif type(value) is int:
|
elif type(value) is int:
|
||||||
description.append('%d %s' % (value, name))
|
description.append('%d %s' % (value, displayName))
|
||||||
else:
|
else:
|
||||||
description.append('%s %s' % (value, name))
|
description.append('%s %s' % (value, displayName))
|
||||||
return description
|
return description
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,7 +164,6 @@ factory.addStep(SVN(
|
||||||
repourl=Interpolate('https://svn.tools.ietf.org/svn/tools/ietfdb/%(src::branch:~trunk)s'),
|
repourl=Interpolate('https://svn.tools.ietf.org/svn/tools/ietfdb/%(src::branch:~trunk)s'),
|
||||||
descriptionSuffix=[Interpolate('%(src::branch)s %(src::revision)s')],
|
descriptionSuffix=[Interpolate('%(src::branch)s %(src::revision)s')],
|
||||||
))
|
))
|
||||||
factory.addStep(RemovePYCs(workdir=Interpolate('build/%(src::branch)s')))
|
|
||||||
factory.addStep(ShellCommand(
|
factory.addStep(ShellCommand(
|
||||||
descriptionDone="install requirements",
|
descriptionDone="install requirements",
|
||||||
workdir=Interpolate('build/%(src::branch)s'),
|
workdir=Interpolate('build/%(src::branch)s'),
|
||||||
|
|
Loading…
Reference in a new issue