Skip to content

Commit 8f7bb17

Browse files
committed
Fix exitcode bug
1 parent 582ff5e commit 8f7bb17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/distribute/run_ci.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ function track_case_status() {
190190
echo -e "\033[31m ---- $case_name loss verification failed test : $loss_fail_count \033"
191191
grep 'check failed! ' result.log | awk -v prefix="$prefix_var" '{if ($2 ~ "^" prefix) print $2}'
192192
fi
193+
return 2
193194
fi
194195
cd "$original_path" || { echo "Failed to return to original path: $original_path"; return 1; }
196+
return 0
195197
}
196198
####################################
197199
get_diff_TO_case # 获取待执行case列表
@@ -238,6 +240,7 @@ if [[ ${#case_list[*]} -ne 0 ]];then
238240
echo -e "\033[31m ---- end run case \033"
239241

240242
track_case_status $FUNCNAME ""
243+
EXCODE=$?
241244
else
242245
echo -e "\033[32m Changed Not CI case, Skips \033"
243246
EXCODE=0

0 commit comments

Comments
 (0)