Skip to content

Instantly share code, notes, and snippets.

@rafaelfranca
Created June 1, 2012 17:17
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 rafaelfranca/f6828a03ee4d40bffbc3 to your computer and use it in GitHub Desktop.
Save rafaelfranca/f6828a03ee4d40bffbc3 to your computer and use it in GitHub Desktop.
times=${1-10}
fails=0
for (( i = 0; i < $times; i++ )); do
bundle exec rake test
if [ $? -ne 0 ]
then
fails=`expr $fails + 1`
fi
done
echo "$times times, $fails failures"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment