From e22722ae641a43710380faa3e2ca8395e554deb8 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 18 May 2010 01:39:17 +0200 Subject: selftest: Cope with empty testsuite results in more places. --- selftest/format-subunit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'selftest/format-subunit') diff --git a/selftest/format-subunit b/selftest/format-subunit index 17b3d1669f..b4509ab1cf 100755 --- a/selftest/format-subunit +++ b/selftest/format-subunit @@ -157,7 +157,8 @@ class PlainFormatter(object): for suite in self.suitesfailed: f.write("== %s ==\n" % suite) - f.write(self.test_output[suite]+"\n\n") + if suite in self.test_output: + f.write(self.test_output[suite]+"\n\n") f.write("\n") @@ -165,7 +166,8 @@ class PlainFormatter(object): for suite in self.suitesfailed: print "=" * 78 print "FAIL: %s" % suite - print self.test_output[suite] + if suite in self.test_output: + print self.test_output[suite] print "" f.write("= Skipped tests =\n") -- cgit