Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Created August 18, 2023 22:33
Show Gist options
  • Save jsturtevant/3828fb741c4a0d1bfa26f3aa7c80f1c2 to your computer and use it in GitHub Desktop.
Save jsturtevant/3828fb741c4a0d1bfa26f3aa7c80f1c2 to your computer and use it in GitHub Desktop.
run test till failure
#!/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