From 3c7a7bbb9a6258744523f41935f3967e48056787 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 26 Aug 2010 03:50:08 +0200 Subject: subunit: Make sure "]" in failure reason ends up on its own line, so the next subunit parser in the line parses it correctly. --- selftest/subunithelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'selftest/subunithelper.py') diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index d0bb0bb533..06e1fc2edc 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) -- cgit