Lines Matching refs:options

233       options, args = self._parse_args(parser, sys_args)
234 if options.swarming:
239 self._load_build_config(options)
243 self._process_default_options(options)
244 self._process_options(options)
250 suites = self._get_suites(args, options)
251 self._prepare_suites(suites, options)
258 return self._do_execute(tests, args, options)
353 options, args = parser.parse_args(sys_args)
356 [options.arch, options.mode])): # pragma: no cover
360 return options, args
362 def _load_build_config(self, options): argument
363 for outdir in self._possible_outdirs(options):
365 self.build_config = self._do_load_build_config(outdir, options.verbose)
390 def _possible_outdirs(self, options): argument
392 if options.gn:
396 yield options.outdir
397 if options.arch and options.mode:
398 yield os.path.join(options.outdir,
399 '%s.%s' % (options.arch, options.mode))
405 if options.mode:
406 yield os.path.join(self.basedir, outdir, options.mode)
444 def _process_default_options(self, options): argument
447 if options.mode:
448 options.mode = self._buildbot_to_v8_mode(options.mode)
451 if options.mode:
452 if options.mode not in MODES: # pragma: no cover
453 print '%s mode is invalid' % options.mode
455 if MODES[options.mode].execution_mode != build_config_mode:
458 MODES[options.mode].execution_mode,
459 options.mode,
463 self.mode_name = options.mode
469 if options.arch and options.arch != self.build_config.arch:
471 options.arch, self.build_config.arch))
474 if options.shell_dir: # pragma: no cover
478 if options.j == 0:
481 options.j = 1
483 options.j = multiprocessing.cpu_count()
485 options.command_prefix = shlex.split(options.command_prefix)
486 options.extra_flags = sum(map(shlex.split, options.extra_flags), [])
497 def _process_options(self, options): argument
581 def _get_suites(self, args, options): argument
582 names = self._args_to_suite_names(args, options.test_root)
583 return self._load_suites(names, options)
594 def _load_suites(self, names, options): argument
595 test_config = self._create_test_config(options)
597 if options.verbose:
600 os.path.join(options.test_root, name),
604 def _prepare_suites(self, suites, options): argument
605 self._load_status_files(suites, options)
609 def _load_status_files(self, suites, options): argument
611 variables = self._get_statusfile_variables(options)
615 def _get_statusfile_variables(self, options): argument
638 "isolates": options.isolates,
642 "no_harness": options.no_harness,
655 def _create_test_config(self, options): argument
656 timeout = options.timeout * self._timeout_scalefactor(options)
658 command_prefix=options.command_prefix,
659 extra_flags=options.extra_flags,
660 isolates=options.isolates,
662 no_harness=options.no_harness,
664 random_seed=options.random_seed,
667 verbose=options.verbose,
670 def _timeout_scalefactor(self, options): argument
684 def _do_execute(self, suites, args, options): argument
693 def _create_shard_proc(self, options): argument
694 myid, count = self._get_shard_info(options)
699 def _get_shard_info(self, options): argument
707 os.environ.get('GTEST_TOTAL_SHARDS', options.shard_count))
713 shard_run = options.shard_run
715 if options.shard_count > 1:
718 if options.shard_count != shard_count: # pragma: no cover
721 if (options.shard_run > 1 and
722 options.shard_run != shard_run): # pragma: no cover
736 def _create_progress_indicators(self, options): argument
737 procs = [PROGRESS_INDICATORS[options.progress]()]
738 if options.junitout:
739 procs.append(progress.JUnitTestProgressIndicator(options.junitout,
740 options.junittestsuite))
741 if options.json_test_results:
743 options.json_test_results,
748 def _create_timeout_proc(self, options): argument
749 if not options.total_timeout_sec:
751 return TimeoutProc(options.total_timeout_sec)
756 def _create_rerun_proc(self, options): argument
757 if not options.rerun_failures_count:
759 return RerunProc(options.rerun_failures_count,
760 options.rerun_failures_max)