if not self._options.dry_run:
threads = message_broker.start_workers(self)
else:
- threads = {}
+ threads = []
self._printer.print_update("Starting testing ...")
keyboard_interrupted = False
def _set_up_derived_options(port_obj, options):
"""Sets the options values that depend on other options values."""
-
+ if options.worker_model is None:
+ options.worker_model = port_obj.default_worker_model()
if options.worker_model == 'inline':
if options.child_processes and int(options.child_processes) > 1:
_log.warning("--worker-model=inline overrides --child-processes")
optparse.make_option("--child-processes",
help="Number of DumpRenderTrees to run in parallel."),
# FIXME: Display default number of child processes that will run.
+ # FIXME: Display default threading model (will be port-specific).
optparse.make_option("--worker-model", action="store",
- default="threads", help=("controls worker model. Valid values are "
- "'inline' and 'threads' (default).")),
+ help=("controls worker model. Valid values are "
+ "'inline' and 'threads'.")),
optparse.make_option("--experimental-fully-parallel",
action="store_true", default=False,
help="run all tests in parallel"),