format-subunit: Display number of failed tests even if there are no
authorJelmer Vernooij <jelmer@samba.org>
Tue, 28 Sep 2010 05:53:02 +0000 (07:53 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 28 Sep 2010 07:12:39 +0000 (09:12 +0200)
failed testsuites.

selftest/format-subunit

index 0d16032afa640e9e554345121c383c8428999817..2661045bb89956cc0ef052ec2c2a8f52682fa876 100755 (executable)
@@ -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)