!875 add test262 endable

Merge pull request !875 from zhangtianqi/master
This commit is contained in:
openharmony_ci 2024-09-21 00:28:24 +00:00 committed by Gitee
commit 157bbc91b8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -520,7 +520,9 @@ class ArkPy:
args_to_test262_cmd.append("--es2021 all")
elif len(arg_list) == 1:
arg = arg_list[0]
if ".js" in arg:
if arg == "sendable":
args_to_test262_cmd.append("--sendable sendable")
elif ".js" in arg:
args_to_test262_cmd.append("--file test262/data/test_es2021/{}".format(arg))
else:
args_to_test262_cmd.append("--dir test262/data/test_es2021/{}".format(arg))