From 02f87d1c367908fa97be35880260e8c2f6fa04a3 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 28 Sep 2010 07:53:02 +0200 Subject: format-subunit: Display number of failed tests even if there are no failed testsuites. --- selftest/format-subunit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit