264
264
old_val = osutils.set_or_unset_env('BZR_PLUGIN_PATH',
266
266
self.addCleanup(osutils.set_or_unset_env, 'BZR_PLUGIN_PATH', old_val)
268
['lp-service', '--port', '127.0.0.1:0', '--no-preload'])
268
269
trace.mutter('started lp-service subprocess')
271
272
prefix = 'Listening on port: '
272
273
port_line = proc.stderr.readline()
273
274
self.assertStartsWith(port_line, prefix)