~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Vincent Ladeuil
  • Date: 2010-06-29 16:21:13 UTC
  • mfrom: (5325 +trunk)
  • mto: (5247.1.12 first-try)
  • mto: This revision was merged to the branch mainline in revision 5326.
  • Revision ID: v.ladeuil+lp@free.fr-20100629162113-xa6y33u17mfi024v
Merge bzr.dev into cleanup resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
2409
2409
        made_control = self.make_bzrdir(relpath, format=format)
2410
2410
        return made_control.create_repository(shared=shared)
2411
2411
 
2412
 
    def make_smart_server(self, path):
 
2412
    def make_smart_server(self, path, backing_server=None):
 
2413
        if backing_server is None:
 
2414
            backing_server = self.get_server()
2413
2415
        smart_server = test_server.SmartTCPServer_for_testing()
2414
 
        self.start_server(smart_server, self.get_server())
 
2416
        self.start_server(smart_server, backing_server)
2415
2417
        remote_transport = _mod_transport.get_transport(smart_server.get_url()
2416
2418
                                                   ).clone(path)
2417
2419
        return remote_transport
3735
3737
        'bzrlib.tests.test_knit',
3736
3738
        'bzrlib.tests.test_lazy_import',
3737
3739
        'bzrlib.tests.test_lazy_regex',
 
3740
        'bzrlib.tests.test_library_state',
3738
3741
        'bzrlib.tests.test_lock',
3739
3742
        'bzrlib.tests.test_lockable_files',
3740
3743
        'bzrlib.tests.test_lockdir',