mosq_test: print stderr from failure to start broker

Doesn't matter when the tests are running, but useful when you're
writing tests.

Signed-off-by: Karl Palsson <karlp@etactica.com>
pull/1583/head
Karl Palsson 6 years ago committed by Karl Palsson
parent 3d45c3186c
commit e700c1c523

@ -60,6 +60,8 @@ def start_broker(filename, cmd=None, port=0, use_conf=False, expect_fail=False):
return broker
if expect_fail == False:
outs, errs = broker.communicate(timeout=1)
print("FAIL: unable to start broker: %s" % errs)
raise IOError
else:
return None

Loading…
Cancel
Save