Lines Matching refs:opts
339 def Build(self, depot, opts):
345 def Build(self, depot, opts):
351 opts: The options parsed from the command line.
359 if opts.use_goma:
363 if opts.build_preference == 'make':
365 elif opts.build_preference == 'ninja':
369 elif opts.build_preference == 'msvs':
379 def InstallAPK(self, opts):
383 opts: The options parsed from the command line.
395 def Build(self, depot, opts):
401 opts: The options parsed from the command line.
408 if opts.use_goma:
412 if opts.build_preference == 'ninja':
418 build_success = self.InstallAPK(opts)
426 def ImageToTarget(self, opts):
427 """Installs latest image to target specified by opts.cros_remote_ip.
430 opts: Program options containing cros_board and cros_remote_ip.
440 '--remote=%s' % opts.cros_remote_ip,
441 '--board=%s' % opts.cros_board, '--test', '--verbose']
448 def BuildPackages(self, opts, depot):
452 opts: Program options containing cros_board.
470 '--board=%s' % opts.cros_board]
475 def BuildImage(self, opts, depot):
479 opts: Program options containing cros_board.
497 '--board=%s' % opts.cros_board, 'test']
503 def Build(self, depot, opts):
508 opts: The options parsed from the command line.
513 if self.BuildPackages(opts, depot):
514 if self.BuildImage(opts, depot):
515 return self.ImageToTarget(opts)
555 def __init__(self, opts):
557 self.opts = opts
775 def __init__(self, source_control, opts):
778 self.opts = opts
787 if opts.target_platform == 'cros':
789 elif opts.target_platform == 'android':
882 cmd = [CROS_SDK_PATH, '--', 'portageq-%s' % self.opts.cros_board,
883 'best_visible', '/build/%s' % self.opts.cros_board, 'ebuild',
924 if self.opts.debug_ignore_build:
930 build_success = self.builder.Build(depot, self.opts)
943 if self.opts.debug_ignore_build:
1058 if self.opts.debug_ignore_perf_test:
1068 if self.opts.target_platform == 'cros':
1070 args.append('--remote=%s' % self.opts.cros_remote_ip)
1079 for i in xrange(self.opts.repeat_test_count):
1096 if self.opts.output_buildbot_annotations:
1103 if elapsed_minutes >= self.opts.repeat_test_max_time or not metric_values:
1111 self.opts.truncate_percent)
1259 if self.opts.target_platform == 'android':
1262 if not bisect_utils.SetupAndroidBuildEnvironment(self.opts):
1325 if not self.opts.debug_ignore_sync:
1435 if bisect_utils.RunGClientAndCreateConfig(self.opts,
1531 if self.opts.output_buildbot_annotations:
1542 if self.opts.output_buildbot_annotations:
1557 if self.source_control.IsGit() and self.opts.target_platform == 'chromium':
1666 if self.opts.target_platform == 'cros':
1699 if self.opts.output_buildbot_annotations:
1709 if self.opts.output_buildbot_annotations:
1738 if self.opts.output_buildbot_annotations:
1751 if self.opts.output_buildbot_annotations:
1861 if self.opts.output_buildbot_annotations:
1902 if self.opts.output_buildbot_annotations:
1921 if self.opts.output_buildbot_annotations:
2054 elif self.opts.repeat_test_count == 1:
2125 if self.opts.output_buildbot_annotations:
2129 def DetermineAndCreateSourceControl(opts):
2141 return GitSourceControl(opts)
2169 def CheckPlatformSupported(opts):
2173 opts: The options parsed from the command line.
2186 if not opts.build_preference:
2187 opts.build_preference = 'msvs'
2189 if opts.build_preference == 'msvs':
2194 elif opts.build_preference == 'ninja':
2197 assert False, 'Error: %s build not supported' % opts.build_preference
2199 if not opts.build_preference:
2201 opts.build_preference = 'ninja'
2203 opts.build_preference = 'make'
2205 if opts.build_preference == 'ninja':
2207 elif opts.build_preference == 'make':
2209 elif opts.build_preference != 'make':
2210 assert False, 'Error: %s build not supported' % opts.build_preference
2342 (opts, args) = parser.parse_args()
2344 if not opts.command:
2350 if not opts.good_revision:
2356 if not opts.bad_revision:
2362 if not opts.metric:
2368 if opts.target_platform == 'cros':
2374 if not opts.cros_board:
2380 if not opts.cros_remote_ip:
2386 if not opts.working_directory:
2392 opts.repeat_test_count = min(max(opts.repeat_test_count, 1), 100)
2393 opts.repeat_test_max_time = min(max(opts.repeat_test_max_time, 1), 60)
2394 opts.truncate_percent = min(max(opts.truncate_percent, 0), 25)
2395 opts.truncate_percent = opts.truncate_percent / 100.0
2397 metric_values = opts.metric.split('/')
2399 print "Invalid metric specified: [%s]" % (opts.metric,)
2403 if opts.working_directory:
2404 if bisect_utils.CreateBisectDirectoryAndSetupDepot(opts):
2407 if not bisect_utils.SetupPlatformBuildEnvironment(opts):
2419 if not CheckPlatformSupported(opts):
2424 source_control = DetermineAndCreateSourceControl(opts)
2432 if not source_control.IsInProperBranch() and not opts.debug_ignore_sync:
2437 bisect_test = BisectPerformanceMetrics(source_control, opts)
2439 bisect_results = bisect_test.Run(opts.command,
2440 opts.bad_revision,
2441 opts.good_revision,