mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
selftest/subunithelper: only let ']\n' lines to terminate
It should not be enough that a line ends with ']\n' is accident, subunit DETAILS are terminated with '\n]\n'! This gives a much higher chance to see the actual problem without having them filtered by various 'filter-subunit' invocations. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
b3ffc61e2f
commit
3f556d9770
@ -85,8 +85,7 @@ def parse_results(msg_ops, statistics, fh):
|
||||
if l == "":
|
||||
break
|
||||
msg_ops.control_msg(l)
|
||||
if l[-2:] == "]\n":
|
||||
reason += l[:-2]
|
||||
if l == "]\n":
|
||||
terminated = True
|
||||
break
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user