Skip to content

Commit 4cfe601

Browse files
committed
Moving and updating the svn copy of the buildbot master config
- Legacy-Id: 216
1 parent 9bced60 commit 4cfe601

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,25 +93,14 @@ from buildbot.process import factory
9393
from buildbot.steps.source import SVN
9494
from buildbot.steps.dummy import Dummy
9595
from buildbot.steps.python import PyFlakes
96-
from buildbot.steps.shell import ShellCommand as BaseShellCommand
97-
from buildbot.status.builder import SUCCESS, WARNINGS, FAILURE
98-
99-
class ShellCommand(BaseShellCommand):
100-
def evaluateCommand(self, cmd):
101-
if cmd.rc == 0:
102-
return SUCCESS
103-
if cmd.rc == 1:
104-
return WARNINGS
105-
else:
106-
return FAILURE
96+
from buildbot.steps.shell import ShellCommand, Test
10797

10898
f1 = factory.BuildFactory()
10999
f1.addStep(SVN, svnurl="http://svn.tools.ietf.org/svn/tools/ietfdb/trunk/", username="buildbot@tools.ietf.org", password="U64#GUxr")
110-
f1.addStep(ShellCommand, command=["test/test-setup"])
111-
f1.addStep(PyFlakes, command=["pyflakes", "ietf"], warnOnFailure=True)
112-
f1.addStep(ShellCommand, command=["python", "ietf/manage.py", "test"], env={'PYTHONPATH': ["test/lib",]} )
113-
f1.addStep(ShellCommand, command=["test/test-teardown"])
114-
f1.addStep(Dummy, timeout=10)
100+
f1.addStep(ShellCommand, name="test-setup", command=["test/test-setup"])
101+
f1.addStep(PyFlakes, command=["pyflakes", "ietf"], warnOnFailure=True)
102+
f1.addStep(Test, name="django-tests", command=["python", "ietf/manage.py", "test"], env={'PYTHONPATH': ["test/lib",]} )
103+
f1.addStep(ShellCommand, name="test-teardown", command=["test/test-teardown"])
115104

116105
b1 = {'name': "merlot-builder-1",
117106
'slavename': "merlot",

0 commit comments

Comments
 (0)