From: Douglas Bagnall Date: Wed, 21 Feb 2018 23:46:47 +0000 (+1300) Subject: selftest: subunithelper needs to follow the subunit spec more closely X-Git-Tag: tevent-0.9.36~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d79575de8e47a0ce03e30c3ea84176be696269f;p=thirdparty%2Fsamba.git selftest: subunithelper needs to follow the subunit spec more closely In particular allow ]\n without \n]\n as used by cmocka Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index 028f5dff77e..bcd25ffc8b5 100644 --- a/selftest/subunithelper.py +++ b/selftest/subunithelper.py @@ -82,7 +82,8 @@ def parse_results(msg_ops, statistics, fh): if l == "": break msg_ops.control_msg(l) - if l == "]\n": + if l[-2:] == "]\n": + reason += l[:-2] terminated = True break else: