[Buildbot-commits] buildbot/buildbot/test test_scheduler.py,1.4,1.5
Brian Warner
warner at users.sourceforge.net
Wed Aug 31 01:12:09 UTC 2005
Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9855/buildbot/test
Modified Files:
test_scheduler.py
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-299
Creator: Brian Warner <warner at lothar.com>
make jobdir-style 'try' report status properly
* buildbot/scripts/tryclient.py (Try): make jobdir-style 'try'
report status properly.
* buildbot/status/client.py (StatusClientPerspective): add a
perspective_getBuildSets method for the benefit of jobdir-style
'try'.
* docs/buildbot.texinfo (try): more docs
* buildbot/test/test_scheduler.py (Scheduling.testGetBuildSets):
new test case
Index: test_scheduler.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_scheduler.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_scheduler.py 11 Aug 2005 20:21:30 -0000 1.4
+++ test_scheduler.py 31 Aug 2005 01:12:07 -0000 1.5
@@ -7,7 +7,7 @@
from twisted.application import service
from twisted.spread import pb
-from buildbot import scheduler, sourcestamp
+from buildbot import scheduler, sourcestamp, buildset, status
from buildbot.twcompat import maybeWait
from buildbot.changes.changes import Change
from buildbot.scripts import tryclient
@@ -230,3 +230,12 @@
reactor.callLater(0, d.callback, None)
return d
+ def testGetBuildSets(self):
+ # validate IStatus.getBuildSets
+ s = status.builder.Status(None, ".")
+ bs1 = buildset.BuildSet(["a","b"], sourcestamp.SourceStamp(),
+ reason="one", bsid="1")
+ s.buildsetSubmitted(bs1.status)
+ self.failUnlessEqual(s.getBuildSets(), [bs1.status])
+ bs1.status.notifyFinishedWatchers()
+ self.failUnlessEqual(s.getBuildSets(), [])
More information about the Commits
mailing list