summaryrefslogtreecommitdiff
path: root/selftest/format-subunit
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-13 22:29:38 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-14 10:54:27 +0200
commitd67eeafc4de2bd5a90b7865a2910b03d6c5c1fca (patch)
treeebd45f8846a157df86da0f1275ccfd4a8bf31b82 /selftest/format-subunit
parentd2fb9ce472909c9e481d7d81d699460c882480a9 (diff)
downloadsamba-d67eeafc4de2bd5a90b7865a2910b03d6c5c1fca.tar.gz
samba-d67eeafc4de2bd5a90b7865a2910b03d6c5c1fca.tar.bz2
samba-d67eeafc4de2bd5a90b7865a2910b03d6c5c1fca.zip
subunit: Use standard subunit functions for reproducing subunit streams.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-xselftest/format-subunit15
1 files changed, 15 insertions, 0 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit
index b949d8e9aa..067fb06610 100755
--- a/selftest/format-subunit
+++ b/selftest/format-subunit
@@ -125,6 +125,21 @@ class PlainFormatter(subunithelper.TestsuiteEnabledTestResult):
def startTest(self, test):
pass
+ def addSuccess(self, test, details=None):
+ self.end_test(test.id(), "success", False, details)
+
+ def addError(self, test, details=None):
+ self.end_test(test.id(), "error", True, details)
+
+ def addFailure(self, test, details=None):
+ self.end_test(test.id(), "failure", True, details)
+
+ def addSkip(self, test, details=None):
+ self.end_test(test.id(), "skip", False, details)
+
+ def addExpectedFail(self, test, details=None):
+ self.end_test(test.id(), "xfail", False, details)
+
def end_test(self, testname, result, unexpected, reason=None):
if not unexpected:
self.test_output[self.name] = ""