]> 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>
Thu, 23 Aug 2018 08:38:28 +0000 (10:38 +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)

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: