[Buildbot-commits] buildbot/buildbot/test test_run.py,1.37,1.38

Brian Warner warner at users.sourceforge.net
Tue Jun 20 08:08:26 UTC 2006


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

Modified Files:
	test_run.py 
Log Message:
[project @ test_run.py: factor out rmtree]

Original author: warner at lothar.com
Date: 2006-06-16 17:10:11

Index: test_run.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_run.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- test_run.py	3 Jan 2006 09:26:41 -0000	1.37
+++ test_run.py	20 Jun 2006 08:08:23 -0000	1.38
@@ -14,7 +14,7 @@
 from buildbot.process.base import BuildRequest
 from buildbot.twcompat import maybeWait
 
-from buildbot.test.runutils import RunMixin
+from buildbot.test.runutils import RunMixin, rmtree
 
 config_base = """
 from buildbot.process import factory, step
@@ -74,12 +74,7 @@
 
 class Run(unittest.TestCase):
     def rmtree(self, d):
-        try:
-            shutil.rmtree(d, ignore_errors=1)
-        except OSError, e:
-            # stupid 2.2 appears to ignore ignore_errors
-            if e.errno != errno.ENOENT:
-                raise
+        rmtree(d)
 
     def testMaster(self):
         self.rmtree("basedir")





More information about the Commits mailing list