[PATCH 27/55] subunithelper: Fix progress support.

Jelmer Vernooij jelmer at samba.org
Fri Feb 6 12:03:59 MST 2015


Change-Id: I5dd2ca0f3bc02821d5c9e1dc878bba577667d162
Signed-off-by: Jelmer Vernooij <jelmer at samba.org>
---
 selftest/subunithelper.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py
index b07d51e..a1d49fd 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):
-- 
2.1.4



More information about the samba-technical mailing list