mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Test: Better failure output for ctrl-dynsec
This commit is contained in:
parent
05720f63e6
commit
e63b3b6bf6
|
|
@ -38,9 +38,7 @@ def ctrl_dynsec_cmd(args, ports, response=None, input=None):
|
|||
|
||||
if response is not None:
|
||||
if proc.stdout != response:
|
||||
print(len(proc.stdout))
|
||||
print(len(response))
|
||||
raise ValueError(proc.stdout)
|
||||
raise ValueError(f"Command:\n{args}\nExpected:\n{response}\nReceived:\n{proc.stdout}")
|
||||
|
||||
if proc.returncode != 0:
|
||||
raise ValueError(args)
|
||||
|
|
|
|||
Loading…
Reference in a new issue