diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-09 14:51:51 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-12-10 03:04:06 +0100 |
commit | 91438920b465ec7455dd1cd700bbe8ec5050b3f9 (patch) | |
tree | c11b7424a81b0cf84b33132a97b98f52380b409b /lib/subunit/python | |
parent | 297434055e2e2b28a2f9cacc09a30786edf8903a (diff) | |
download | samba-91438920b465ec7455dd1cd700bbe8ec5050b3f9.tar.gz samba-91438920b465ec7455dd1cd700bbe8ec5050b3f9.tar.bz2 samba-91438920b465ec7455dd1cd700bbe8ec5050b3f9.zip |
subunit: Update to newer upstream snapshot.
Diffstat (limited to 'lib/subunit/python')
-rw-r--r-- | lib/subunit/python/subunit/__init__.py | 6 | ||||
-rwxr-xr-x | lib/subunit/python/subunit/run.py | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/subunit/python/subunit/__init__.py b/lib/subunit/python/subunit/__init__.py index b6f0108f61..b2c7a29237 100644 --- a/lib/subunit/python/subunit/__init__.py +++ b/lib/subunit/python/subunit/__init__.py @@ -646,7 +646,13 @@ class TestProtocolClient(testresult.TestResult): def startTest(self, test): """Mark a test as starting its test run.""" + super(TestProtocolClient, self).startTest(test) self._stream.write("test: %s\n" % test.id()) + self._stream.flush() + + def stopTest(self, test): + super(TestProtocolClient, self).stopTest(test) + self._stream.flush() def progress(self, offset, whence): """Provide indication about the progress/length of the test run. diff --git a/lib/subunit/python/subunit/run.py b/lib/subunit/python/subunit/run.py index daa241a606..b390de33f7 100755 --- a/lib/subunit/python/subunit/run.py +++ b/lib/subunit/python/subunit/run.py @@ -69,4 +69,5 @@ class SubunitTestProgram(TestProgram): if __name__ == '__main__': stream = get_default_formatter() runner = SubunitTestRunner(stream) - SubunitTestProgram(module=None, argv=sys.argv, testRunner=runner) + SubunitTestProgram(module=None, argv=sys.argv, testRunner=runner, + stdout=sys.stdout) |