Lines Matching refs:args
47 args = parser.parse_args()
49 if args.es2015:
50 args.test_dir = os.path.join(args.test_dir, 'es2015')
52 args.test_dir = os.path.join(args.test_dir, 'es51')
54 return args
57 def prepare_test262_test_suite(args):
58 if os.path.isdir(os.path.join(args.test_dir, '.git')):
62 'https://gitee.com/Han00000000/test262.git', args.test_dir])
67 if args.es2015:
72 return_code = subprocess.call(['git', 'checkout', git_hash], cwd=args.test_dir)
77 if args.es2015:
79 os.path.join(args.test_dir, 'excludelist.xml'))
82 cwd=args.test_dir)
88 path_to_remove = os.path.join(args.test_dir, 'test', 'suite', 'bestPractice')
92 path_to_remove = os.path.join(args.test_dir, 'test', 'suite', 'intl402')
98 def main(args):
99 return_code = prepare_test262_test_suite(args)
109 [os.path.join(args.test_dir, 'tools/packaging/test262.py'),
110 '--command', (args.runtime + ' ' + args.engine).strip(),
111 '--tests', args.test_dir,
117 with open(os.path.join(os.path.dirname(args.engine), 'test262.report'), 'w') as output_file: