diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2014-12-14 19:25:55 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-03-06 04:41:47 +0100 |
commit | 8bbc343b5c02a2a71b77e5b43cfe583b643a8910 (patch) | |
tree | eefe51e54606ac46a63e03dfe7c2617a631f8fc1 /python | |
parent | cc4f5372af80577cf7026438ebefc3ae8e5e030f (diff) | |
download | samba-8bbc343b5c02a2a71b77e5b43cfe583b643a8910.tar.gz |
Set default testRunner rather than requiring the user pass it in.
Change-Id: I8b5a5925030049975a83b090e5c7b76d5245c07d
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rwxr-xr-x | python/samba/subunit/run.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/samba/subunit/run.py b/python/samba/subunit/run.py index dbe6b241c82..0eb29139190 100755 --- a/python/samba/subunit/run.py +++ b/python/samba/subunit/run.py @@ -537,6 +537,8 @@ class TestProgram(object): argv = sys.argv if stdout is None: stdout = sys.stdout + if testRunner is None: + testRunner = SubunitTestRunner() self.exit = exit self.failfast = failfast @@ -729,5 +731,4 @@ class TestProgram(object): if __name__ == '__main__': - TestProgram(module=None, argv=sys.argv, testRunner=SubunitTestRunner(), - stdout=sys.stdout) + TestProgram(module=None, argv=sys.argv, stdout=sys.stdout) |