summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-12-14 20:10:20 +0000
committerAndrew Bartlett <abartlet@samba.org>2015-03-06 04:41:47 +0100
commit8c6d85b81781a85842c38be12ce431172594e159 (patch)
tree6c48aea393fc56f8b385bfb6bfbebd5661238b1c
parent940c277d83737367617a7b06e49f71b6a2ab4fde (diff)
downloadsamba-8c6d85b81781a85842c38be12ce431172594e159.tar.gz
samba-8c6d85b81781a85842c38be12ce431172594e159.tar.xz
samba-8c6d85b81781a85842c38be12ce431172594e159.zip
subunithelper: Fix progress support.
Change-Id: I5dd2ca0f3bc02821d5c9e1dc878bba577667d162 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--selftest/subunithelper.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py
index b07d51edad..a1d49fd51c 100644
--- a/selftest/subunithelper.py
+++ b/selftest/subunithelper.py
@@ -194,7 +194,14 @@ def parse_results(msg_ops, statistics, fh):
class SubunitOps(TestProtocolClient,TestsuiteEnabledTestResult):
def progress(self, count, whence):
- pass
+ if whence == subunit.PROGRESS_POP:
+ self._stream.write("progress: pop\n")
+ elif whence == subunit.PROGRESS_PUSH:
+ self._stream.write("progress: push\n")
+ elif whence == subunit.PROGRESS_SET:
+ self._stream.write("progress: %d\n" % count)
+ elif whence == subunit.PROGRESS_CUR:
+ raise NotImplementedError
# The following are Samba extensions:
def start_testsuite(self, name):