Created
August 18, 2023 22:33
-
-
Save jsturtevant/3828fb741c4a0d1bfa26f3aa7c80f1c2 to your computer and use it in GitHub Desktop.
run test till failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
counter=0 | |
while [ $counter -lt 100 ]; do | |
let counter++ | |
echo "Attempt: $counter" | |
# Run the command | |
sudo GO=/home/jstur/go/bin/go1.19.9 TEST_RUNTIME="io.containerd.runc.v2-rs" EXTRA_TESTFLAGS="-run TestTaskResize" make integration | |
status=$? | |
# Check the exit status | |
if [ $status -ne 0 ]; then | |
echo failed | |
exit $status | |
fi | |
sleep 1 | |
done | |
echo "make integration completed successfully for 100 attempts." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment