Update self-hosted.yml (#687)
add a TIMEOUT for TIM-VX check. If this step fails, there is a high probability that the local board has problems.There is a TIMEOUT to find problems faster.
This commit is contained in:
parent
8ca1382474
commit
e3d891a477
|
|
@ -37,8 +37,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: check_TIM-VX_result
|
- name: check_TIM-VX_result
|
||||||
run: |
|
run: |
|
||||||
|
start_time=$(date +%s)
|
||||||
|
max_duration=3600
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
current_time=$(date +%s)
|
||||||
|
|
||||||
|
elapsed_time=$((current_time - start_time))
|
||||||
|
|
||||||
|
if [[ $elapsed_time -ge $max_duration ]];then
|
||||||
|
echo "TIM-VX result check has exceeded 1 hour."
|
||||||
|
echo "Please check the local board."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -e /home/vip_sqa/build_case/result/TIM-VX_unit_test_qua.txt ]];then
|
if [[ -e /home/vip_sqa/build_case/result/TIM-VX_unit_test_qua.txt ]];then
|
||||||
total_num=`cat /home/vip_sqa/build_case/result/TIM-VX_unit_test_qua.txt | grep "Total" | awk -F ':' '{print $2}' | sed 's/ //g'`
|
total_num=`cat /home/vip_sqa/build_case/result/TIM-VX_unit_test_qua.txt | grep "Total" | awk -F ':' '{print $2}' | sed 's/ //g'`
|
||||||
pass_num=`cat /home/vip_sqa/build_case/result/TIM-VX_unit_test_qua.txt | grep "Pass" | awk -F ':' '{print $2}' | sed 's/ //g'`
|
pass_num=`cat /home/vip_sqa/build_case/result/TIM-VX_unit_test_qua.txt | grep "Pass" | awk -F ':' '{print $2}' | sed 's/ //g'`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue