Skip to content

Instantly share code, notes, and snippets.

@dirk-thomas
Created October 8, 2015 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirk-thomas/002c0feb63ec67c0b59d to your computer and use it in GitHub Desktop.
Save dirk-thomas/002c0feb63ec67c0b59d to your computer and use it in GitHub Desktop.
ctest repeat-until-fail function for bashrc
ctest-repeat-until-fail() {
count=0
ret=0
until [ ${ret} -ne 0 ]; do
count=$((count+1))
echo "Run #$count"
ctest $@
ret=$?
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment