]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: subunithelper needs to follow the subunit spec more closely
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 21 Feb 2018 23:46:47 +0000 (12:46 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 21 Aug 2018 14:10:23 +0000 (16:10 +0200)
In particular allow ]\n without \n]\n as used by cmocka

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 7d79575de8e47a0ce03e30c3ea84176be696269f)

Autobuild-User(v4-7-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-7-test): Tue Aug 21 16:10:23 CEST 2018 on sn-devel-144

selftest/subunithelper.py

index fab7d6f0b41706322fbab1311cec2bcb657df6ba..efc8bedcfcb26cffdc9112c6d7335960a6196007 100644 (file)
@@ -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: