diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2010-01-15 17:16:50 +1300 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2010-01-15 17:16:50 +1300 |
| commit | 7ed9f4c8a1958a2faa163b06d246fef81da52680 (patch) | |
| tree | b1d392daca5bee6c7bdf198dda68dd4242e538de /python/subunit/run.py | |
| parent | 0c8006dc4ab62a5664ed18caa21b89f19baac4f6 (diff) | |
| download | subunit-7ed9f4c8a1958a2faa163b06d246fef81da52680.tar.gz | |
Support SUBUNIT_FORMATTER environment variable.
Diffstat (limited to 'python/subunit/run.py')
| -rwxr-xr-x | python/subunit/run.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/subunit/run.py b/python/subunit/run.py index 2b90791..01c0b0e 100755 --- a/python/subunit/run.py +++ b/python/subunit/run.py @@ -22,7 +22,7 @@ import sys -from subunit import TestProtocolClient +from subunit import TestProtocolClient, get_default_formatter class SubunitTestRunner(object): @@ -41,6 +41,7 @@ if __name__ == '__main__': from unittest import TestProgram parser = optparse.OptionParser(__doc__) args = parser.parse_args()[1] - runner = SubunitTestRunner() + stream = get_default_formatter() + runner = SubunitTestRunner(stream) program = TestProgram(module=None, argv=[sys.argv[0]] + args, testRunner=runner) |
