Lines Matching refs:args

293   def __init__(self, *args):
479 args=self.GetCommandFlags(extra_flags=extra_flags),
605 def __init__(self, args):
606 self.shell_dir = args.shell_dir
607 self.shell_dir_secondary = args.shell_dir_secondary
608 self.extra_flags = args.extra_flags.split()
609 self.args = args
612 def ReadBuildConfig(args):
613 config_path = os.path.join(args.shell_dir, 'v8_build_config.json')
620 def GetPlatform(args):
621 if Platform.ReadBuildConfig(args).get('is_android', False):
622 return AndroidPlatform(args)
624 return DesktopPlatform(args)
667 def __init__(self, args):
668 super(DesktopPlatform, self).__init__(args)
672 command.setup(utils.GuessOS(), args.device)
674 if args.prioritize or args.affinitize != None:
676 if args.prioritize:
678 if args.affinitize != None:
683 cpu = int(args.affinitize)
721 def __init__(self, args):
722 super(AndroidPlatform, self).__init__(args)
723 self.driver = android.android_driver(args.device)
764 if self.args.dump_logcats_to:
767 self.args.dump_logcats_to, 'logcat-%s-#%d%s.log' % (
777 args=runnable.GetCommandFlags(self.extra_flags),
984 args = parser.parse_args(argv)
989 level=logging.DEBUG if args.verbose else logging.INFO,
992 if args.arch == 'auto': # pragma: no cover
993 args.arch = utils.DefaultArch()
994 if args.arch not in SUPPORTED_ARCHS:
996 'Auto-detected architecture "%s" is not supported.', args.arch)
999 if (args.json_test_results_secondary and
1000 not args.outdir_secondary): # pragma: no cover
1007 if args.binary_override_path == None:
1008 args.shell_dir = find_build_directory(
1009 os.path.join(workspace, args.outdir), args.arch)
1012 if not os.path.isfile(args.binary_override_path):
1015 if args.outdir_secondary:
1018 args.shell_dir = os.path.abspath(
1019 os.path.dirname(args.binary_override_path))
1020 default_binary_name = os.path.basename(args.binary_override_path)
1022 if args.outdir_secondary:
1023 args.shell_dir_secondary = find_build_directory(
1024 os.path.join(workspace, args.outdir_secondary), args.arch)
1026 args.shell_dir_secondary = None
1028 if args.json_test_results:
1029 args.json_test_results = os.path.abspath(args.json_test_results)
1031 if args.json_test_results_secondary:
1032 args.json_test_results_secondary = os.path.abspath(
1033 args.json_test_results_secondary)
1037 args.suite = list(map(os.path.abspath, args.suite))
1041 platform = Platform.GetPlatform(args)
1046 with CustomMachineConfiguration(governor = args.cpu_governor,
1047 disable_aslr = args.noaslr) as conf:
1048 for path in args.suite:
1064 root = BuildGraphConfigs(suite, args.arch, default_parent)
1075 if (not runnable_name.startswith(args.filter) and
1076 runnable_name + '/' != args.filter):
1081 if args.confidence_level:
1084 runnable, args.confidence_level):
1088 for i in range(0, max(1, args.run_count or runnable.run_count)):
1095 if total_duration > args.max_total_duration:
1098 total_duration, args.max_total_duration)
1102 runnable, i, secondary=args.shell_dir_secondary)
1126 if args.json_test_results:
1127 result_tracker.WriteToFile(args.json_test_results)
1131 if args.shell_dir_secondary:
1132 if args.json_test_results_secondary:
1133 result_tracker_secondary.WriteToFile(args.json_test_results_secondary)