diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-05-20 13:29:37 +0000 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-05-20 13:29:37 +0000 |
commit | ec79a0a2e4bf567f59cb6c24542957f5219c7208 (patch) | |
tree | 10261f6b691127d380687ecbc0022f817fa7da40 | |
parent | 8b33b30181eed6cf8e735c4731a7aa3eee940644 (diff) | |
parent | ff6aa7906e5ee9faade81e201e72f242caa37478 (diff) | |
download | gitlab-ce-ec79a0a2e4bf567f59cb6c24542957f5219c7208.tar.gz |
Merge branch 'qa-retry-in-ci-only' into 'master'
Only retry failing QA tests in CI
See merge request gitlab-org/gitlab-ce!28163
-rw-r--r-- | qa/spec/spec_helper.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qa/spec/spec_helper.rb b/qa/spec/spec_helper.rb index 24ff1523ba7..a368ffba711 100644 --- a/qa/spec/spec_helper.rb +++ b/qa/spec/spec_helper.rb @@ -35,8 +35,10 @@ RSpec.configure do |config| # show exception that triggers a retry if verbose_retry is set to true config.display_try_failure_messages = true - config.around do |example| - retry_times = example.metadata.keys.include?(:quarantine) ? 1 : 2 - example.run_with_retry retry: retry_times + if ENV['CI'] + config.around do |example| + retry_times = example.metadata.keys.include?(:quarantine) ? 1 : 2 + example.run_with_retry retry: retry_times + end end end |