diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index d9b68a7ca9f53a8cd9aa882bdc11162b7bb5b6b6..68331b48ad6e3a0c63013cdff61105f76c2d7dab 100644 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -153,7 +153,7 @@ def Get_templete(args_list): else: is_debug = "is_debug = false" all_part = (is_debug + "\n" + target_os + "\n" + target_cpu) - return [global_arche, global_mode, global_target, global_clean, USER_ARGS_TEMPLATE%(all_part), global_test] + return [global_arche, global_mode, global_target, global_clean, USER_ARGS_TEMPLATE % (all_part), global_test] def Build(template): @@ -197,7 +197,7 @@ def RunTest(template): test_dir = arch + "." + mode test262_code = '''cd ets_frontend python3 test262/run_test262.py --es2021 all --timeout 180000 --libs-dir ../out/%s:../prebuilts/clang/ohos/linux-x86_64/llvm/lib --ark-tool=../out/%s/ark/ark_js_runtime/ark_js_vm --ark-frontend-binary=../out/%s/clang_x64/ark/ark/es2abc --merge-abc-binary=../out/%s/clang_x64/ark/ark/merge_abc --ark-frontend=es2panda - '''%(test_dir, test_dir, test_dir, test_dir) + ''' % (test_dir, test_dir, test_dir, test_dir) if ("-test262" == test): print("=== come to test ===") return _Call(test262_code)