summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-28 07:53:02 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-28 09:12:39 +0200
commit02f87d1c367908fa97be35880260e8c2f6fa04a3 (patch)
tree27a5fc16f5d803c9f3b7048e9b17639d16b07f90
parent36ffe4f467779cd282ed471f3bed8aee8a7c55bd (diff)
downloadsamba-02f87d1c367908fa97be35880260e8c2f6fa04a3.tar.gz
samba-02f87d1c367908fa97be35880260e8c2f6fa04a3.tar.xz
samba-02f87d1c367908fa97be35880260e8c2f6fa04a3.zip
format-subunit: Display number of failed tests even if there are no
failed testsuites.
-rwxr-xr-xselftest/format-subunit4
1 files changed, 3 insertions, 1 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit
index 0d16032afa6..2661045bb89 100755
--- a/selftest/format-subunit
+++ b/selftest/format-subunit
@@ -200,7 +200,9 @@ class PlainFormatter(subunithelper.TestsuiteEnabledTestResult):
print "\nA summary with detailed information can be found in:"
print " %s" % self.summaryfile
- if not self.suitesfailed:
+ if (not self.suitesfailed and
+ not self.statistics['TESTS_UNEXPECTED_FAIL'] and
+ not self.statistics['TESTS_ERROR']):
ok = (self.statistics['TESTS_EXPECTED_OK'] +
self.statistics['TESTS_EXPECTED_FAIL'])
print "\nALL OK (%d tests in %d testsuites)" % (ok, self.suites_ok)