~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-01-27 17:55:32 UTC
  • mfrom: (3955.1.8 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090127175532-221guyk1hom2fzli
(jml) Refactor 'cmd_serve' to make it easier to extend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        args = ['serve', '--port', 'localhost:0']
98
98
        args.extend(extra_options)
99
99
        process = self.start_bzr_subprocess(args, skip_if_plan_to_signal=True)
100
 
        port_line = process.stdout.readline()
 
100
        port_line = process.stderr.readline()
101
101
        prefix = 'listening on port: '
102
102
        self.assertStartsWith(port_line, prefix)
103
103
        port = int(port_line[len(prefix):])