added logic to check if execution of tests for more than two countries failed

This commit is contained in:
Maria Haider 2024-01-08 17:17:37 +01:00
parent 33351ab2d0
commit 69f1acada9
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -38,6 +38,18 @@ if [ "$diff_exec_time" -gt "$day" ]; then
fi
raw_not_executed_test=$(echo "$exec_status" | jq --raw-output '."last execution result".notExecutedTests[2]')
declare -a not_executed_test=($(echo "$raw_not_executed_test" | tr "\n" " "))
#echo ${not_executed_test[*]}
if [ "$not_executed_test" != null ]
then
echo "more than two lands not executed "
exit $STATE_CRITICAL
fi
raw_lands=$(echo "$exec_status" | jq --raw-output '."last execution result".failed[].result')
raw_lands_result=$?