Add retries to AWS smoke test check

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-06-08 18:11:05 -05:00 committed by Major Hayden
parent 860bb219af
commit 904335cc94

View file

@ -231,12 +231,14 @@ done
# Check for our smoke test file. # Check for our smoke test file.
greenprint "🛃 Checking for smoke test file" greenprint "🛃 Checking for smoke test file"
RESULTS="$(smoke_test_check $PUBLIC_IP)" for LOOP_COUNTER in {0..10}; do
if [[ $RESULTS == "1" ]]; then RESULTS="$(smoke_test_check $PUBLIC_IP)"
echo "Smoke test passed! 🥳" if [[ $RESULTS == 1 ]]; then
else echo "Smoke test passed! 🥳"
echo "Smoke test failed! 😭" break
fi fi
sleep 5
done
# Clean up our mess. # Clean up our mess.
greenprint "🧼 Cleaning up" greenprint "🧼 Cleaning up"