From 7b95b3001f85a2f4922d62ba1d3cab370a162b02 Mon Sep 17 00:00:00 2001 From: Viktoria Shirunova Date: Fri, 23 Aug 2024 17:20:27 +0300 Subject: [PATCH] test262: add --extra-exlude-list option Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAN6GF Testing: All required pre-merge tests passed. Results are available in the ggwatcher. Signed-off-by: Viktoria Shirunova Change-Id: I86715549acdb07286cdd068e973316e2d72d6730 --- build/compile_script/ark.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build/compile_script/ark.py b/build/compile_script/ark.py index b3372939..908027c6 100755 --- a/build/compile_script/ark.py +++ b/build/compile_script/ark.py @@ -506,6 +506,11 @@ class ArkPy: if threads_value: args_to_test262_cmd.extend([threads_name, threads_value]) + custom_skip_name = "--extra-exclude-list" + custom_skip_value, arg_list = ArkPy.parse_option(arg_list, option_name=custom_skip_name, default_value=None) + if custom_skip_value: + args_to_test262_cmd.extend([custom_skip_name, custom_skip_value]) + enable_rm = [arg for arg in arg_list if "enable-rm" in arg] if enable_rm: args_to_test262_cmd.append("--enable-rm") @@ -705,8 +710,9 @@ class ArkPy: help_msg += "\033[32mCommand template:\033[0m\n{}\n\n".format( " python3 ark.py \033[92m[os_cpu].[mode] [gn_target] [option]\033[0m\n" " python3 ark.py \033[92m[os_cpu].[mode] [test262] [none or --aot] " \ - "[none or --pgo] [none or --litecg] [none, file or dir] [none or --threads=X] [option]\033[0m\n" - " python3 ark.py \033[92m[os_cpu].[mode] [test262] [none or --jit] [none or --threads=X]\033[0m\n" + "[none or --pgo] [none or --litecg] [none, file or dir] [--threads X] " + "[--extra-exclude-list EXTRA_EXCLUDE_LIST_NAME] [option]\033[0m\n" + " python3 ark.py \033[92m[os_cpu].[mode] [test262] [none or --jit] [--threads=X]\033[0m\n" " python3 ark.py \033[92m[os_cpu].[mode] [test262] [none or --baseline-jit] [none or --enable-rm] " \ "[none or --threads=X]\033[0m\n" " python3 ark.py \033[92m[os_cpu].[mode] [unittest] [option]\033[0m\n" -- Gitee