Skip to content

Commit 213997c

Browse files
committed
Fix print_info func with exit -6
1 parent 3e27561 commit 213997c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

scripts/distribute/run_ci.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,16 @@ fi
139139
}
140140
####################################
141141
print_info(){
142-
#解决异常退出-6的问题,CI中的偶现问题,无法复现
143-
if [[ $1 -ne 0 ]] && [[ $1 -ne 250 ]];then
142+
if [ $1 -eq 250 ];then
143+
#解决异常退出-6的问题,CI中的偶现问题,无法复现
144+
echo -e "\033[1;31m"
145+
echo -e "\033[1;31m The CI execution encountered an abnormal termination with error code exit -6. \033[0m"
146+
echo -e "\033[1;31m This is an intermittent issue. \033[0m"
147+
echo -e "\033[1;31m Please re-run the CI. \033[0m"
148+
echo -e "\033[1;31m"
149+
exit 2
150+
fi
151+
if [[ $1 -ne 0 ]];then
144152
EXCODE=2
145153
if [ ! -f ${log_path}/$2 ];then
146154
echo -e "\033[31m run $2 CI FAIL \033"
@@ -151,7 +159,7 @@ if [[ $1 -ne 0 ]] && [[ $1 -ne 250 ]];then
151159
fi
152160
exit $EXCODE
153161
else
154-
echo -e "\033[32m run $3 CI SUCCESS \033"
162+
echo -e "\033[32m The $3 CI has completed \033"
155163
fi
156164
}
157165
####################################

0 commit comments

Comments
 (0)