[Buildbot-commits] buildbot/buildbot/test test_steps.py,1.16,1.17

Brian Warner warner at users.sourceforge.net
Mon Oct 24 21:49:21 UTC 2005


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

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

s/slaveVersionNewEnough/slaveVersionIsOlderThan/

	* buildbot/process/step.py (BuildStep): rename
	slaveVersionNewEnough to slaveVersionIsOlderThan, because that's
	how it is normally used.
	* buildbot/test/test_steps.py (Version.checkCompare): same


Index: test_steps.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_steps.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- test_steps.py	23 Oct 2005 05:28:46 -0000	1.16
+++ test_steps.py	24 Oct 2005 21:49:18 -0000	1.17
@@ -224,9 +224,10 @@
         #self.failUnlessEqual(s.slaveVersion("NOSUCHCOMMAND", "old"), "old")
 
         # now check the comparison functions
-        self.failUnless(s.slaveVersionNewEnough("svn", commands.cvs_ver))
-        self.failUnless(s.slaveVersionNewEnough("svn", "1.1"))
-        self.failIf(s.slaveVersionNewEnough("svn", commands.cvs_ver + ".1"))
+        self.failIf(s.slaveVersionIsOlderThan("svn", commands.cvs_ver))
+        self.failIf(s.slaveVersionIsOlderThan("svn", "1.1"))
+        self.failUnless(s.slaveVersionIsOlderThan("svn",
+                                                  commands.cvs_ver + ".1"))
 
     def testCompare(self):
         self.master._checker = self.checkCompare





More information about the Commits mailing list