Add retries to AWS smoke test check
Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
860bb219af
commit
904335cc94
1 changed files with 8 additions and 6 deletions
|
|
@ -231,12 +231,14 @@ done
|
|||
|
||||
# Check for our smoke test file.
|
||||
greenprint "🛃 Checking for smoke test file"
|
||||
RESULTS="$(smoke_test_check $PUBLIC_IP)"
|
||||
if [[ $RESULTS == "1" ]]; then
|
||||
echo "Smoke test passed! 🥳"
|
||||
else
|
||||
echo "Smoke test failed! 😭"
|
||||
fi
|
||||
for LOOP_COUNTER in {0..10}; do
|
||||
RESULTS="$(smoke_test_check $PUBLIC_IP)"
|
||||
if [[ $RESULTS == 1 ]]; then
|
||||
echo "Smoke test passed! 🥳"
|
||||
break
|
||||
fi
|
||||
sleep 5
|
||||
done
|
||||
|
||||
# Clean up our mess.
|
||||
greenprint "🧼 Cleaning up"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue