mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 813742 - add --parallel option for mach reftest-esque things; r=ted
This commit is contained in:
parent
e6d9d98b0e
commit
2d8b40990b
@ -138,7 +138,7 @@ class ReftestRunner(MozbuildObject):
|
||||
return reftest.run_remote_reftests(parser, options, args)
|
||||
|
||||
def run_desktop_test(self, test_file=None, filter=None, suite=None,
|
||||
debugger=None):
|
||||
debugger=None, parallel=False):
|
||||
"""Runs a reftest.
|
||||
|
||||
test_file is a path to a test file. It can be a relative path from the
|
||||
@ -153,6 +153,8 @@ class ReftestRunner(MozbuildObject):
|
||||
|
||||
debugger is the program name (in $PATH) or the full path of the
|
||||
debugger to run.
|
||||
|
||||
parallel indicates whether tests should be run in parallel or not.
|
||||
"""
|
||||
|
||||
if suite not in ('reftest', 'reftest-ipc', 'crashtest', 'crashtest-ipc'):
|
||||
@ -175,6 +177,9 @@ class ReftestRunner(MozbuildObject):
|
||||
extra_args.append('--debugger=%s' % debugger)
|
||||
pass_thru = True
|
||||
|
||||
if parallel:
|
||||
extra_args.append('--run-tests-in-parallel')
|
||||
|
||||
if extra_args:
|
||||
args = [os.environ.get(b'EXTRA_TEST_ARGS', '')]
|
||||
args.extend(extra_args)
|
||||
@ -202,6 +207,10 @@ def ReftestCommand(func):
|
||||
'reftest.list. If omitted, the entire test suite is executed.')
|
||||
func = path(func)
|
||||
|
||||
parallel = CommandArgument('--parallel', action='store_true',
|
||||
help='Run tests in parallel.')
|
||||
func = parallel(func)
|
||||
|
||||
return func
|
||||
|
||||
def B2GCommand(func):
|
||||
|
Loading…
Reference in New Issue
Block a user