Lines Matching refs:args
87 def dump_files(meths, args, output): argument
92 "profmand", "--reference-profile-file={}".format(args.output_file),
93 "--create-profile-from={}".format(args.output_source)
96 for apk in args.apks:
104 def get_answer(args): argument
105 if args.test_exec is None:
108 args.output_file))
116 test_args = shlex.split(args.test_exec)
124 def run_test(meths, args): argument
125 with open(args.output_source, "wt") as output:
126 dump_files(meths, args, output)
129 return get_answer(args)
133 args = parser.parse_args()
134 if args.output_source is None:
136 args.output_source = "/proc/{}/fd/{}".format(os.getpid(), fdnum)
138 for f in args.apks:
147 if args.input_profile is not None:
150 "--profile-file={}".format(args.input_profile)
152 for apk in args.apks:
159 elif args.input_text_profile is not None:
160 with open(args.input_text_profile, "rt") as inp:
175 result = run_test(meth_list, args)
187 result = run_test(test_methods, args)
195 with open(args.output_source, "wt") as output:
196 dump_files(meth_list, args, output)
200 args.output_file, args.output_source))