Fix timeout limit

timeout_limit add

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAATHK?from=project-issue
Signed-off-by: fangting <fangting12@huawei.com>
This commit is contained in:
fangting 2024-07-05 11:28:09 +08:00
parent 4343720042
commit 3f9522cee7

View File

@ -122,7 +122,7 @@ def judge_output(args: object):
"""run executable and judge is success or not."""
start_time = time.time()
[cmd, subp] = process_open(args)
timeout_limit = int(args.timeout_limit) if args.timeout_limit else 150 # units: s
timeout_limit = int(args.timeout_limit) if args.timeout_limit else 1200 # units: s
try:
out, err = subp.communicate(timeout=timeout_limit)