Merge pull request #4269 from choiceaustralia/qunit-args

exit if RETRY is false
This commit is contained in:
Sam 2016-06-29 11:44:17 +10:00 committed by GitHub
commit 83b08b87d5
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ task "qunit:test" => :environment do
begin begin
sh(cmd) sh(cmd)
rescue rescue
exit if ENV['RETRY'].present? && ENV['RETRY'] == 'false'
sleep 2 sleep 2
tries += 1 tries += 1
retry unless tries == 10 retry unless tries == 10