[Buildbot-commits] buildbot/buildbot/test test_steps.py,1.22,1.23

Brian Warner warner at users.sourceforge.net
Sun Aug 6 07:05:51 UTC 2006


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

Modified Files:
	test_steps.py 
Log Message:
[project @ test_steps.py: update to match s/cvs_ver/command_version/ change]

Original author: warner at lothar.com
Date: 2006-08-06 07:04:57

Index: test_steps.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_steps.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- test_steps.py	20 Jun 2006 16:08:47 -0000	1.22
+++ test_steps.py	6 Aug 2006 07:05:49 -0000	1.23
@@ -217,9 +217,10 @@
 
 
     def checkCompare(self, s):
+        cver = commands.command_version
         v = s.slaveVersion("svn", None)
         # this insures that we are getting the version correctly
-        self.failUnlessEqual(s.slaveVersion("svn", None), commands.cvs_ver)
+        self.failUnlessEqual(s.slaveVersion("svn", None), cver)
         # and that non-existent commands do not provide a version
         self.failUnlessEqual(s.slaveVersion("NOSUCHCOMMAND"), None)
         # TODO: verify that a <=0.5.0 buildslave (which does not implement
@@ -228,10 +229,9 @@
         #self.failUnlessEqual(s.slaveVersion("NOSUCHCOMMAND", "old"), "old")
 
         # now check the comparison functions
-        self.failIf(s.slaveVersionIsOlderThan("svn", commands.cvs_ver))
+        self.failIf(s.slaveVersionIsOlderThan("svn", cver))
         self.failIf(s.slaveVersionIsOlderThan("svn", "1.1"))
-        self.failUnless(s.slaveVersionIsOlderThan("svn",
-                                                  commands.cvs_ver + ".1"))
+        self.failUnless(s.slaveVersionIsOlderThan("svn", cver + ".1"))
 
     def testCompare(self):
         self.master._checker = self.checkCompare





More information about the Commits mailing list