diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-08-26 03:50:08 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-08-26 04:04:37 +0200 |
commit | 3c7a7bbb9a6258744523f41935f3967e48056787 (patch) | |
tree | fab3ee5f6e950a11d7a8316a4f50c9eb3ac3de6e /selftest/subunithelper.py | |
parent | e260965929563daad9464c599732b2ab358c9dc5 (diff) | |
download | samba-3c7a7bbb9a6258744523f41935f3967e48056787.tar.gz |
subunit: Make sure "]" in failure reason ends up on its own line, so the
next subunit parser in the line parses it correctly.
Diffstat (limited to 'selftest/subunithelper.py')
-rw-r--r-- | selftest/subunithelper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index d0bb0bb5330..06e1fc2edc3 100644 --- a/selftest/subunithelper.py +++ b/selftest/subunithelper.py @@ -66,7 +66,7 @@ def parse_results(msg_ops, statistics, fh): break else: reason += l - + if not terminated: statistics['TESTS_ERROR']+=1 msg_ops.end_test(testname, "error", True, @@ -167,7 +167,7 @@ class SubunitOps(object): def end_test(self, name, result, reason=None): if reason: print "%s: %s [" % (result, name) - print "%s" % reason + print reason print "]" else: print "%s: %s" % (result, name) |