diff -r 1533371769b5 -r 8999851a503f tests/run-tests.py --- a/tests/run-tests.py Mon Sep 18 17:11:32 2017 -0400 +++ b/tests/run-tests.py Tue Sep 19 00:06:57 2017 -0400 @@ -659,10 +659,10 @@ def __init__(self, path, outputdir, tmpdir, keeptmpdir=False, debug=False, - timeout=defaults['timeout'], - startport=defaults['port'], extraconfigopts=None, + timeout=None, + startport=None, extraconfigopts=None, py3kwarnings=False, shell=None, hgcommand=None, - slowtimeout=defaults['slowtimeout'], usechg=False, + slowtimeout=None, usechg=False, useipv6=False): """Create a test from parameters. @@ -694,6 +694,12 @@ shell is the shell to execute tests in. """ + if timeout is None: + timeout = defaults['timeout'] + if startport is None: + startport = defaults['port'] + if slowtimeout is None: + slowtimeout = defaults['slowtimeout'] self.path = path self.bname = os.path.basename(path) self.name = _strpath(self.bname)