subunithelper: Pass along lines as normal output when ignoring them for not containin...
authorJelmer Vernooij <jelmer@samba.org>
Thu, 26 Aug 2010 00:25:44 +0000 (02:25 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 26 Aug 2010 02:04:37 +0000 (04:04 +0200)
selftest/subunithelper.py

index d2054a94987766c8b5874f61f007d6d0f308520a..d0bb0bb5330b12d60a16073b9bd97c5b512b5532 100644 (file)
@@ -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":