summaryrefslogtreecommitdiff
path: root/python/subunit/run.py
diff options
context:
space:
mode:
authorJames Westby <james.westby@linaro.org>2011-11-01 11:59:58 -0400
committerJames Westby <james.westby@linaro.org>2011-11-01 11:59:58 -0400
commit4b1040bee710cd126df2847a933d0960b5fd568f (patch)
tree06a0cbade27dfe95d42101b31ba613e03e994f20 /python/subunit/run.py
parent60fea6784a456673fd9e42e93d8c5bf3f4a0e6f1 (diff)
downloadsubunit-4b1040bee710cd126df2847a933d0960b5fd568f.tar.gz
Have the output of subunit.run include timing information.
Diffstat (limited to 'python/subunit/run.py')
-rwxr-xr-xpython/subunit/run.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/subunit/run.py b/python/subunit/run.py
index 51d6837..ca5fe5c 100755
--- a/python/subunit/run.py
+++ b/python/subunit/run.py
@@ -23,6 +23,7 @@
import sys
from subunit import TestProtocolClient, get_default_formatter
+from subunit.test_results import AutoTimingTestResultDecorator
from testtools.run import (
BUFFEROUTPUT,
CATCHBREAK,
@@ -39,6 +40,7 @@ class SubunitTestRunner(object):
def run(self, test):
"Run the given test case or test suite."
result = TestProtocolClient(self.stream)
+ result = AutoTimingTestResultDecorator(result)
test(result)
return result