Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- passed="false"
- failed="false"
- while [ "$failed" == "false" ] && [ "$passed" == "false" ] && [ $tryCount -lt $maxWaitTime ]
- do
- tryCount=$((tryCount + 1))
- podLogs=$(kubectl logs --tail=80 pods/$runningPod)
- case $podLogs in
- *"Test run passed"*) passed="true";;
- *"Test run failed"*) failed="true";;
- *) sleep 5
- esac
- timeWaited=$((tryCount * 5))
- echo "Waiting for test run to finish. Waited: $timeWaited seconds"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement