From ccb5eed717aed11e54ae3e0f38a41380147dc711 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Tue, 14 Jun 2016 14:17:39 +1000 Subject: [PATCH] exit if RETRY is false --- lib/tasks/qunit.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake index 07e9a48b6..5aa1d7901 100644 --- a/lib/tasks/qunit.rake +++ b/lib/tasks/qunit.rake @@ -52,6 +52,7 @@ task "qunit:test" => :environment do begin sh(cmd) rescue + exit if ENV['RETRY'].present? && ENV['RETRY'] == 'false' sleep 2 tries += 1 retry unless tries == 10