Created
October 8, 2015 20:55
-
-
Save dirk-thomas/002c0feb63ec67c0b59d to your computer and use it in GitHub Desktop.
ctest repeat-until-fail function for bashrc
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
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