Run a bash command until it fails
Useful for finding flaky tests/specs, etc. Modify the COMMAND
below and paste into your terminal:
# tweak these
TRIES=5
COMMAND="bundle exec rspec"
# tweaked from http://unix.stackexchange.com/a/82602
n=0
until [ $n -ge $TRIES ]
do
$COMMAND || break
n=$[$n+1]
done
Written by Aidan Feldman
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#