summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-12-14 19:25:55 +0000
committerAndrew Bartlett <abartlet@samba.org>2015-03-06 04:41:47 +0100
commit8bbc343b5c02a2a71b77e5b43cfe583b643a8910 (patch)
treeeefe51e54606ac46a63e03dfe7c2617a631f8fc1 /python
parentcc4f5372af80577cf7026438ebefc3ae8e5e030f (diff)
downloadsamba-8bbc343b5c02a2a71b77e5b43cfe583b643a8910.tar.gz
samba-8bbc343b5c02a2a71b77e5b43cfe583b643a8910.tar.xz
samba-8bbc343b5c02a2a71b77e5b43cfe583b643a8910.zip
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-xpython/samba/subunit/run.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/samba/subunit/run.py b/python/samba/subunit/run.py
index dbe6b241c8..0eb2913919 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)