[Buildbot-commits] buildbot/buildbot/steps dummy.py,1.3,1.4

Brian Warner warner at users.sourceforge.net
Fri Nov 24 07:16:37 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot/steps
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32609/buildbot/steps

Modified Files:
	dummy.py 
Log Message:
[project @ reconfig no longer interrupts builds, nor does it disconnect/reconnect slaves]

Original author: warner at lothar.com
Date: 2006-11-23 21:32:36

Index: dummy.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/steps/dummy.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- dummy.py	17 Sep 2006 20:35:49 -0000	1.3
+++ dummy.py	24 Nov 2006 07:16:35 -0000	1.4
@@ -4,6 +4,8 @@
 from buildbot.process.buildstep import LoggedRemoteCommand
 from buildbot.status.builder import SUCCESS, FAILURE
 
+# these classes are used internally by buildbot unit tests
+
 class Dummy(BuildStep):
     """I am a dummy no-op step, which runs entirely on the master, and simply
     waits 5 seconds before finishing with SUCCESS
@@ -79,3 +81,20 @@
         cmd = LoggedRemoteCommand("dummy", args)
         self.startCommand(cmd)
 
+class Wait(LoggingBuildStep):
+    """I start a command on the slave that waits for the unit test to
+    tell it when to finish.
+    """
+
+    name = "wait"
+    def __init__(self, handle, **kwargs):
+        LoggingBuildStep.__init__(self, **kwargs)
+        self.handle = handle
+
+    def describe(self, done=False):
+        return ["wait: %s" % self.handle]
+
+    def start(self):
+        args = {'handle': (self.handle, self.build.reason)}
+        cmd = LoggedRemoteCommand("dummy.wait", args)
+        self.startCommand(cmd)





More information about the Commits mailing list