From 8bbc343b5c02a2a71b77e5b43cfe583b643a8910 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 14 Dec 2014 19:25:55 +0000 Subject: Set default testRunner rather than requiring the user pass it in. Change-Id: I8b5a5925030049975a83b090e5c7b76d5245c07d Signed-Off-By: Jelmer Vernooij Reviewed-by: Andrew Bartlett --- python/samba/subunit/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python') 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) -- cgit v1.2.1