Rev 2178: Further test-usability for chroots. in http://bazaar.launchpad.net/~bzr/bzr/hpss

Robert Collins robertc at robertcollins.net
Wed Mar 28 04:34:32 BST 2007


At http://bazaar.launchpad.net/~bzr/bzr/hpss

------------------------------------------------------------
revno: 2178
revision-id: robertc at robertcollins.net-20070328033336-sql7uwiy63dgq70i
parent: robertc at robertcollins.net-20070328031239-tavfdk4e6yarr2na
parent: robertc at robertcollins.net-20070328033235-sph663bdtwynteg9
committer: Robert Collins <robertc at robertcollins.net>
branch nick: hpss
timestamp: Wed 2007-03-28 13:33:36 +1000
message:
  Further test-usability for chroots.
modified:
  bzrlib/transport/chroot.py     chroot.py-20061011104729-0us9mgm97z378vnt-1
    ------------------------------------------------------------
    revno: 2018.1.2.1.50.2.80.1.99.1.9.1.21.1.26.2.74.1.2
    merged: robertc at robertcollins.net-20070328033235-sph663bdtwynteg9
    parent: robertc at robertcollins.net-20070328030232-uunyt91y60b584j9
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: hpss-chroot
    timestamp: Wed 2007-03-28 13:32:35 +1000
    message:
      Further test-usability for chroots.
=== modified file 'bzrlib/transport/chroot.py'
--- a/bzrlib/transport/chroot.py	2007-03-28 03:12:39 +0000
+++ b/bzrlib/transport/chroot.py	2007-03-28 03:33:36 +0000
@@ -129,7 +129,15 @@
 class TestingChrootServer(ChrootServer):
 
     def __init__(self):
-        ChrootServer.__init__(self, get_transport('.'))
+        """TestingChrootServer is not usable until setUp is called."""
+
+    def setUp(self, backing_server=None):
+        """Setup the Chroot on backing_server."""
+        if backing_server is not None:
+            self.backing_transport = get_transport(backing_server.get_url())
+        else:
+            self.backing_transport = get_transport('.')
+        ChrootServer.setUp(self)
 
 
 def get_test_permutations():



More information about the bazaar-commits mailing list