[Buildbot-commits] buildbot/buildbot/test test_properties.py, 1.11, 1.12

Brian Warner warner at users.sourceforge.net
Tue Mar 18 20:06:14 UTC 2008


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

Modified Files:
	test_properties.py 
Log Message:
[project @ shell.py: allow WithProperties in environment variables and workdir=. Closes #52.]

Original author: warner at lothar.com
Date: 2008-03-18 20:02:24+00:00

Index: test_properties.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_properties.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- test_properties.py	7 Aug 2007 19:21:40 -0000	1.11
+++ test_properties.py	18 Mar 2008 20:06:12 -0000	1.12
@@ -11,13 +11,6 @@
 from buildbot.slave.commands import rmdirRecursive
 from buildbot.test.runutils import RunMixin
 
-class MyBuildStep(ShellCommand):
-    def _interpolateProperties(self, command):
-        command = ["tar", "czf",
-                   "build-%s.tar.gz" % self.getProperty("revision"),
-                   "source"]
-        return ShellCommand._interpolateProperties(self, command)
-
 
 class FakeBuild:
     pass
@@ -92,13 +85,6 @@
         self.failUnlessEqual(cmd,
                              ["tar", "czf", "build-.tar.gz", "source"])
 
-    def testCustomBuildStep(self):
-        c = MyBuildStep(workdir=dir)
-        c.setBuild(self.build)
-        cmd = c._interpolateProperties(c.command)
-        self.failUnlessEqual(cmd,
-                             ["tar", "czf", "build-1234.tar.gz", "source"])
-
     def testSourceStamp(self):
         c = ShellCommand(workdir=dir,
                          command=["touch",





More information about the Commits mailing list