~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_serve.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-28 22:24:40 UTC
  • mfrom: (4659.1.3 test-speed)
  • Revision ID: pqm@pqm.ubuntu.com-20090828222440-jt2m0uvoy126e5kz
(robertc) Refactor server startup and cleanup registration in the
        test suite to reduce duplication. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
        ssh_server = SFTPServer(StubSSHServer)
210
210
        # XXX: We *don't* want to override the default SSH vendor, so we set
211
211
        # _vendor to what _get_ssh_vendor returns.
212
 
        ssh_server.setUp()
213
 
        self.addCleanup(ssh_server.tearDown)
 
212
        self.start_server(ssh_server)
214
213
        port = ssh_server._listener.port
215
214
 
216
215
        # Access the branch via a bzr+ssh URL.  The BZR_REMOTE_PATH environment