@@ -93,25 +93,14 @@ from buildbot.process import factory
9393from buildbot .steps .source import SVN
9494from buildbot .steps .dummy import Dummy
9595from 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
10898f1 = factory .BuildFactory ()
10999f1 .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
116105b1 = {'name' : "merlot-builder-1" ,
117106 'slavename' : "merlot" ,
0 commit comments