summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-13 22:13:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-14 10:54:27 +0200
commitd2fb9ce472909c9e481d7d81d699460c882480a9 (patch)
treefff4b42c0760f5313349ae6780e9c015edd0096b
parentb61cc18972616f33397745e20150613928e683a2 (diff)
downloadsamba-d2fb9ce472909c9e481d7d81d699460c882480a9.tar.gz
samba-d2fb9ce472909c9e481d7d81d699460c882480a9.tar.bz2
samba-d2fb9ce472909c9e481d7d81d699460c882480a9.zip
subunit: Remove unused methods.
-rw-r--r--selftest/subunithelper.py16
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)