diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-09-28 07:53:02 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-09-28 09:12:39 +0200 |
commit | 02f87d1c367908fa97be35880260e8c2f6fa04a3 (patch) | |
tree | 27a5fc16f5d803c9f3b7048e9b17639d16b07f90 /selftest/format-subunit | |
parent | 36ffe4f467779cd282ed471f3bed8aee8a7c55bd (diff) | |
download | samba-02f87d1c367908fa97be35880260e8c2f6fa04a3.tar.gz samba-02f87d1c367908fa97be35880260e8c2f6fa04a3.tar.bz2 samba-02f87d1c367908fa97be35880260e8c2f6fa04a3.zip |
format-subunit: Display number of failed tests even if there are no
failed testsuites.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-x | selftest/format-subunit | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit index 0d16032afa..2661045bb8 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) |