git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ffe4f
)
format-subunit: Display number of failed tests even if there are no
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 28 Sep 2010 05:53:02 +0000
(07:53 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 28 Sep 2010 07:12:39 +0000
(09:12 +0200)
failed testsuites.
selftest/format-subunit
patch
|
blob
|
history
diff --git
a/selftest/format-subunit
b/selftest/format-subunit
index 0d16032afa640e9e554345121c383c8428999817..2661045bb89956cc0ef052ec2c2a8f52682fa876 100755
(executable)
--- 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)