From c458aa46f8c84b63d6fa21952ca687d36012ec6e Mon Sep 17 00:00:00 2001 From: haohongxiang Date: Tue, 5 Mar 2024 10:46:43 +0000 Subject: [PATCH] fix bugs --- tools/auto_parallel/ci_case_unit.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/auto_parallel/ci_case_unit.sh b/tools/auto_parallel/ci_case_unit.sh index 0747cb4bb0c4d..b3c250858ee2f 100644 --- a/tools/auto_parallel/ci_case_unit.sh +++ b/tools/auto_parallel/ci_case_unit.sh @@ -31,6 +31,7 @@ function case_list_unit() { case_name=`awk -F, 'NR=='$i' {print $1}' testslist.csv` if [[ ${target_key} != "all" ]] && [[ ! ${case_name} =~ ${target_key} ]]; then echo "=========== skip $case_name run ===========" + continue else echo "=========== $case_name run begin ===========" fi @@ -51,13 +52,13 @@ main() { export exec_case=$1 echo -e "\033[31m ---- Start executing $exec_case case \033[0m" - if [[ $exec_case =~ "auto_unit_test" ]];then + if [[ $exec_case == "auto_unit_test" ]];then cd ${auto_case_path} case_list_unit - elif [[ $exec_case =~ "dygraph_unit_test" ]];then + elif [[ $exec_case == "dygraph_unit_test" ]];then cd ${dygraph_case_path} case_list_unit - elif [[ $exec_case =~ "llama_auto_unit_test" ]];then + elif [[ $exec_case == "llama_auto_unit_test" ]];then cd ${auto_case_path} case_list_unit llama else