SHARE
TWEET

Untitled

a guest Jun 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. passed="false"
  2. failed="false"
  3.  
  4. while [ "$failed" == "false" ] && [ "$passed" == "false" ] && [ $tryCount -lt $maxWaitTime ]
  5. do
  6.     tryCount=$((tryCount + 1))
  7.     podLogs=$(kubectl logs --tail=80 pods/$runningPod)
  8.  
  9.     case $podLogs in
  10.         *"Test run passed"*) passed="true";;
  11.         *"Test run failed"*) failed="true";;
  12.         *) sleep 5
  13.     esac
  14.  
  15.     timeWaited=$((tryCount * 5))
  16.     echo "Waiting for test run to finish. Waited: $timeWaited seconds"
  17. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top