mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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>
This commit is contained in:
parent
cc4f5372af
commit
8bbc343b5c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user