diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2014-11-01 12:51:31 -0700 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2014-11-19 02:46:03 +0100 |
commit | fb4b0ac611e971a5278de41d1f04309f7cca3b95 (patch) | |
tree | 28a4225bb626110cb8af11a78c42ae90769f1d7b /selftest/subunithelper.py | |
parent | 1d6016df5ccef235279521088eb13dc262f25277 (diff) | |
download | samba-fb4b0ac611e971a5278de41d1f04309f7cca3b95.tar.gz |
Display total number of tests in format-subunit, not just number of test suites.
Change-Id: Iae17df773f380b13d2b3f69e83593139c01c4a6d
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest/subunithelper.py')
-rw-r--r-- | selftest/subunithelper.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index dcea5a84bbe..3a968439072 100644 --- a/selftest/subunithelper.py +++ b/selftest/subunithelper.py @@ -485,7 +485,13 @@ class PlainFormatter(TestsuiteEnabledTestResult): if not self.verbose: self.test_output[name] = "" - out = "[%d" % self.index + total_tests = (self.statistics['TESTS_EXPECTED_OK'] + + self.statistics['TESTS_EXPECTED_FAIL'] + + self.statistics['TESTS_ERROR'] + + self.statistics['TESTS_UNEXPECTED_FAIL'] + + self.statistics['TESTS_UNEXPECTED_OK']) + + out = "[%d(%d)" % (self.index, total_tests) if self.totalsuites is not None: out += "/%d" % self.totalsuites if self.start_time is not None: |