[Buildbot-commits] buildbot/buildbot/test test_control.py,1.7,1.8 test_buildreq.py,1.2,1.3

Brian Warner warner at users.sourceforge.net
Wed Aug 17 02:15:40 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31918/buildbot/test

Modified Files:
	test_control.py test_buildreq.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-295
Creator:  Brian Warner <warner at monolith.lothar.com>

implement IBuildSetStatus/IBuildRequestStatus, wire them into place

	* buildbot/status/builder.py: implement IBuildSetStatus and
	IBuildRequestStatus, wire them into place.
	* buildbot/buildset.py: same. Add ID, move wait-until-finished
	methods into the BuildSetStatus object.
	* buildbot/interfaces.py: same
	(IStatus.getBuildSets): new method to get pending BuildSets
	(IStatusReceiver.buildsetSubmitted): new method which hears about
	new BuildSets
	* buildbot/master.py (BuildMaster.submitBuildSet): same
	* buildbot/process/base.py (BuildRequest): same, replace
	waitUntilStarted with subscribe/unsubscribe
	* buildbot/process/builder.py (BuilderControl.forceBuild): use
	subscribe instead of waitUntilStarted
	* buildbot/status/base.py (StatusReceiver.buildsetSubmitted): stub
	for new method
	* buildbot/status/client.py (StatusClientPerspective.builderRemoved): 
	same
	* buildbot/test/test_buildreq.py: update for new code
	* buildbot/test/test_control.py (Force.testRequest): same


Index: test_buildreq.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_buildreq.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- test_buildreq.py	10 Aug 2005 04:52:41 -0000	1.2
+++ test_buildreq.py	17 Aug 2005 02:15:38 -0000	1.3
@@ -79,6 +79,7 @@
 
 
 class FakeBuilder:
+    name = "fake"
     def __init__(self):
         self.requests = []
     def submitBuildRequest(self, req):

Index: test_control.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_control.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- test_control.py	19 Jul 2005 23:11:58 -0000	1.7
+++ test_control.py	17 Aug 2005 02:15:38 -0000	1.8
@@ -141,7 +141,8 @@
         c = interfaces.IControl(m)
         req = base.BuildRequest("I was bored", SourceStamp())
         builder_control = c.getBuilder("force")
-        d = req.waitUntilStarted()
+        d = defer.Deferred()
+        req.subscribe(d.callback)
         builder_control.requestBuild(req)
         d.addCallback(self._testForce_1)
         return maybeWait(d)





More information about the Commits mailing list