added logic to check if execution of tests for more than two countries failed
This commit is contained in:
parent
33351ab2d0
commit
69f1acada9
1 changed files with 12 additions and 0 deletions
|
@ -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=$?
|
||||
|
|
Loading…
Add table
Reference in a new issue