80
97
args = ['serve', '--port', 'localhost:0']
81
98
args.extend(extra_options)
82
99
process = self.start_bzr_subprocess(args, skip_if_plan_to_signal=True)
84
101
prefix = 'listening on port: '
85
102
self.assertStartsWith(port_line, prefix)
86
103
port = int(port_line[len(prefix):])