selftest: Cope with testsuites without any output whatsoever (probably an error though).
authorJelmer Vernooij <jelmer@samba.org>
Mon, 17 May 2010 22:01:48 +0000 (00:01 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 17 May 2010 23:40:20 +0000 (01:40 +0200)
selftest/format-subunit

index 032b990f2d7da26ea3bbeccee373cf35c505f184..17b3d1669f78b623eba06caa9e9257da5fb9c142 100755 (executable)
@@ -109,7 +109,7 @@ class PlainFormatter(object):
             if reason is not None:
                 self.output_msg("REASON: %s\n" % (reason,))
             self.suitesfailed.append(name)
-            if self.immediate and not self.verbose:
+            if self.immediate and not self.verbose and name in self.test_output:
                 out += self.test_output[name]
             unexpected = True