diff --git a/tasks/github.rake b/tasks/github.rake index a9df2216dc9..9dbb2d20338 100644 --- a/tasks/github.rake +++ b/tasks/github.rake @@ -105,7 +105,11 @@ namespace :github do env = { 'BUNDLE_GEMFILE' => task['gemfile'] } cmd = "bundle exec rake spec:#{task['task']}" - Bundler.with_unbundled_env { sh(env, cmd) } + 100.times do |i| + puts "Running iteration #{i + 1}/100." + tests_passed = Bundler.with_unbundled_env { system(env, cmd) } + break unless tests_passed + end end end