From ca74dd3c699507d4771aeaf2b5e52f85a3fc0add Mon Sep 17 00:00:00 2001 From: wuhuanzhou Date: Wed, 13 Jan 2021 11:22:22 +0800 Subject: [PATCH] fix case name error when op benchmark ci auto-retry, test=document_fix (#30322) --- tools/check_op_benchmark_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_op_benchmark_result.py b/tools/check_op_benchmark_result.py index cef55f5ba0..9253604c92 100644 --- a/tools/check_op_benchmark_result.py +++ b/tools/check_op_benchmark_result.py @@ -127,7 +127,7 @@ def update_api_info_file(fail_case_list, api_info_file): check_path_exists(api_info_file) # set of case names for performance check failures - fail_case_set = set(map(lambda x: x.split('_')[0], fail_case_list)) + fail_case_set = set(map(lambda x: x.rsplit('_', 1)[0], fail_case_list)) # list of api infos for performance check failures api_info_list = list() -- GitLab