summaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
authorJonathan Lange <jml@mumak.net>2012-04-20 12:41:18 +0100
committerJonathan Lange <jml@mumak.net>2012-04-20 12:41:18 +0100
commitfe3bf8cc566459d49bf18cee4876afa4d873c73b (patch)
treeb7eb8d1192421c785d14d5d14c1970a2a9ce119a /filters
parent001d31a8428f5ae30de4d87135eb5d465875c558 (diff)
downloadsubunit-fe3bf8cc566459d49bf18cee4876afa4d873c73b.tar.gz
Re-use more common code.
Diffstat (limited to 'filters')
-rwxr-xr-xfilters/subunit-filter6
1 files changed, 2 insertions, 4 deletions
diff --git a/filters/subunit-filter b/filters/subunit-filter
index 945f80d..4f63d2e 100755
--- a/filters/subunit-filter
+++ b/filters/subunit-filter
@@ -36,6 +36,7 @@ from subunit import (
TestProtocolClient,
read_test_list,
)
+from subunit.filters import run_tests_from_stream
from subunit.test_results import (
and_predicates,
_make_tag_filter,
@@ -147,8 +148,5 @@ else:
passthrough_stream = None
result = make_result(sys.stdout, options, tag_filter)
-test = ProtocolTestCase(sys.stdin, passthrough=passthrough_stream)
-result.startTestRun()
-test.run(result)
-result.stopTestRun()
+run_tests_from_stream(sys.stdin, result, passthrough_stream)
sys.exit(0)