[Buildbot-commits] buildbot/buildbot/steps maxq.py,1.2,1.3
Brian Warner
warner at users.sourceforge.net
Mon Jun 18 03:58:20 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/steps
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19929/buildbot/steps
Modified Files:
maxq.py
Log Message:
[project @ steps/maxq.py: fix import errors]
Original author: warner at lothar.com
Date: 2007-06-18 03:33:33+00:00
Index: maxq.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/steps/maxq.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- maxq.py 18 Jun 2007 02:52:49 -0000 1.2
+++ maxq.py 18 Jun 2007 03:58:17 -0000 1.3
@@ -1,5 +1,5 @@
from buildbot.steps.shell import ShellCommand
-from buildbot.status import event, builder
+from buildbot.status.builder import Event, SUCCESS, FAILURE
class MaxQ(ShellCommand):
flunkOnFailure = True
@@ -13,8 +13,8 @@
self.addFactoryArguments(testdir=testdir)
def startStatus(self):
- evt = event.Event("yellow", ['running', 'maxq', 'tests'],
- files={'log': self.log})
+ evt = Event("yellow", ['running', 'maxq', 'tests'],
+ files={'log': self.log})
self.setCurrentActivity(evt)
@@ -25,11 +25,10 @@
output = self.log.getAll()
self.failures += output.count('\nTEST FAILURE:')
- result = (builder.SUCCESS, ['maxq'])
+ result = (SUCCESS, ['maxq'])
if self.failures:
- result = (builder.FAILURE,
- [str(self.failures), 'maxq', 'failures'])
+ result = (FAILURE, [str(self.failures), 'maxq', 'failures'])
return self.stepComplete(result)
More information about the Commits
mailing list