[Buildbot-commits] buildbot/buildbot/test test_changes.py,1.6,1.7

Brian Warner warner at users.sourceforge.net
Tue Oct 25 01:26:13 UTC 2005


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

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

update manual, add --branch to 'buildbot sendchange'

	* docs/buildbot.texinfo: update lots of stuff

	* buildbot/scripts/runner.py (sendchange): add a --branch argument
	to the 'buildbot sendchange' command
	* buildbot/clients/sendchange.py (Sender.send): same
	* buildbot/changes/pb.py (ChangePerspective): same
	* buildbot/test/test_changes.py (Sender.testSender): test it


Index: test_changes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_changes.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- test_changes.py	14 Oct 2005 19:47:58 -0000	1.6
+++ test_changes.py	25 Oct 2005 01:26:10 -0000	1.7
@@ -175,3 +175,18 @@
         self.failUnlessEqual(c.comments, "")
         self.failUnlessEqual(c.revision, 42)
 
+        # verify --branch too
+        self.options['branch'] = "branches/test"
+
+        d = runner.sendchange(self.options)
+        d.addCallback(self._testSender_6)
+        return d
+
+    def _testSender_6(self, res):
+        self.failUnlessEqual(len(self.cm.changes), 1)
+        c = self.cm.changes.pop()
+        self.failUnlessEqual(c.who, "alice")
+        self.failUnlessEqual(c.files, ["foo.c"])
+        self.failUnlessEqual(c.comments, "")
+        self.failUnlessEqual(c.revision, 42)
+        self.failUnlessEqual(c.branch, "branches/test")





More information about the Commits mailing list