git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b61cc18
)
subunit: Remove unused methods.
author
Jelmer Vernooij
<jelmer@samba.org>
Mon, 13 Sep 2010 20:13:15 +0000
(22:13 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Tue, 14 Sep 2010 08:54:27 +0000
(10:54 +0200)
selftest/subunithelper.py
patch
|
blob
|
history
diff --git
a/selftest/subunithelper.py
b/selftest/subunithelper.py
index 2f7a37844a68a5e3a52daa85cf10c8b8de0fb4b5..f8029cb360e6decd522aad0d8c630bbdf07cc330 100644
(file)
--- 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.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:
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))
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)
# The following are Samba extensions:
def start_testsuite(self, name):
self._stream.write("testsuite: %s\n" % name)