[Buildbot-commits] buildbot/buildbot/test test_vc.py,1.34,1.35

Brian Warner warner at users.sourceforge.net
Wed Jul 20 02:18:24 UTC 2005


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

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

disable bazaar's revision cache, since it causes test failures

	* buildbot/test/test_vc.py (Arch.createRepository): and disable
	bazaar's revision cache, since they cause test failures (the
	multiple repositories we create all interfere with each other
	through the cache)


Index: test_vc.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_vc.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- test_vc.py	20 Jul 2005 00:28:06 -0000	1.34
+++ test_vc.py	20 Jul 2005 02:18:22 -0000	1.35
@@ -1172,6 +1172,18 @@
                               "Buildbot Test Suite <test at buildbot.sf.net>"])
             yield w; w.getResult()
 
+        if VCS.have['baz']:
+            # bazaar keeps a cache of revisions, but this test creates a new
+            # archive each time it is run, so the cache causes errors.
+            # Disable the cache to avoid these problems. This will be
+            # slightly annoying for people who run the buildbot tests under
+            # the same UID as one which uses baz on a regular basis, but
+            # bazaar doesn't give us a way to disable the cache just for this
+            # one archive.
+            cmd = "baz cache-config --disable"
+            w = self.do(tmp, cmd)
+            yield w; w.getResult()
+
         w = waitForDeferred(self.unregisterRepository("tla"))
         yield w; w.getResult()
 





More information about the Commits mailing list