diff options
-rw-r--r-- | selftest/subunithelper.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index 2f7a37844a..f8029cb360 100644 --- a/selftest/subunithelper.py +++ b/selftest/subunithelper.py @@ -159,8 +159,8 @@ def parse_results(msg_ops, statistics, fh): msg_ops.output_msg(l) while open_tests: - msg_ops.end_test(open_tests.pop(), "error", True, - "was started but never finished!") + test = subunit.RemotedTestCase(open_tests.popitem()[1]) + msg_ops.addError(test, "was started but never finished!") statistics['TESTS_ERROR']+=1 if statistics['TESTS_ERROR'] > 0: @@ -193,18 +193,6 @@ class SubunitOps(subunit.TestProtocolClient,TestsuiteEnabledTestResult): else: self._stream.write("%s: %s\n" % (result, name)) - def skip_test(self, name, reason=None): - self.end_test(name, "skip", reason) - - def fail_test(self, name, reason=None): - self.end_test(name, "fail", reason) - - def success_test(self, name, reason=None): - self.end_test(name, "success", reason) - - def xfail_test(self, name, reason=None): - self.end_test(name, "xfail", reason) - # The following are Samba extensions: def start_testsuite(self, name): self._stream.write("testsuite: %s\n" % name) |