fix codeCheck warnings

Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
This commit is contained in:
zhaozhibo 2022-10-13 16:23:40 +08:00
parent 593e6fcbbf
commit 3aa3816b42

View File

@ -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)