diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-05-18 01:39:17 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-05-18 01:40:20 +0200 |
commit | e22722ae641a43710380faa3e2ca8395e554deb8 (patch) | |
tree | 511afb97256a7234c5b67e3a9b1f1116df96704f /selftest | |
parent | 11ec2916a7ba937aa09057a3a6b990bd29476cc4 (diff) | |
download | samba-e22722ae641a43710380faa3e2ca8395e554deb8.tar.gz samba-e22722ae641a43710380faa3e2ca8395e554deb8.tar.bz2 samba-e22722ae641a43710380faa3e2ca8395e554deb8.zip |
selftest: Cope with empty testsuite results in more places.
Diffstat (limited to 'selftest')
-rwxr-xr-x | selftest/format-subunit | 6 |
1 files changed, 4 insertions, 2 deletions
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") |