Merge pull request #606 from erikwilson/sonobuoy-cleanup-2

Clean up sonobuoy scripts
pull/609/head
Erik Wilson 5 years ago committed by GitHub
commit ebb12c74c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -173,10 +173,10 @@ export -f sonobuoy-test
sonobuoy-retry-test() { sonobuoy-retry-test() {
SECONDS=0 SECONDS=0
LIMIT=300 LIMIT=300
for i in seq 1 3; do for i in $(seq 1 3); do
sonobuoy-test "${@}" && return sonobuoy-test "${@}" && return
echo "Failed sonobuoy try #${i}" echo "Failed sonobuoy try #${i}"
if [[ "$SECONDS" > "$LIMIT" ]]; then if [ "$SECONDS" -gt "$LIMIT" ]; then
echo "Stopping sonobuoy re-try after ${SECONDS} seconds (limit ${LIMIT}s)" echo "Stopping sonobuoy re-try after ${SECONDS} seconds (limit ${LIMIT}s)"
break break
fi fi

Loading…
Cancel
Save