From 64564f7338107f781d814e7721e85cc882106c2b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 26 Aug 2010 02:25:44 +0200 Subject: subunithelper: Pass along lines as normal output when ignoring them for not containing commands. --- selftest/subunithelper.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'selftest/subunithelper.py') diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index d2054a9498..d0bb0bb533 100644 --- a/selftest/subunithelper.py +++ b/selftest/subunithelper.py @@ -34,6 +34,7 @@ def parse_results(msg_ops, statistics, fh): break parts = l.split(None, 1) if not len(parts) == 2 or not l.startswith(parts[0]): + msg_ops.output_msg(l) continue command = parts[0].rstrip(":") arg = parts[1] @@ -128,6 +129,9 @@ def parse_results(msg_ops, statistics, fh): msg_ops.end_testsuite(testname, "xfail", reason) elif result == "testsuite-error": msg_ops.end_testsuite(testname, "error", reason) + else: + raise AssertionError("Recognized but unhandled result %r" % + result) elif command == "testsuite": msg_ops.start_testsuite(arg.strip()) elif command == "progress": -- cgit