Commit ec79a0a2 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-retry-in-ci-only' into 'master'

Only retry failing QA tests in CI

See merge request gitlab-org/gitlab-ce!28163
parents 8b33b301 ff6aa790
...@@ -35,8 +35,10 @@ RSpec.configure do |config| ...@@ -35,8 +35,10 @@ RSpec.configure do |config|
# show exception that triggers a retry if verbose_retry is set to true # show exception that triggers a retry if verbose_retry is set to true
config.display_try_failure_messages = true config.display_try_failure_messages = true
if ENV['CI']
config.around do |example| config.around do |example|
retry_times = example.metadata.keys.include?(:quarantine) ? 1 : 2 retry_times = example.metadata.keys.include?(:quarantine) ? 1 : 2
example.run_with_retry retry: retry_times example.run_with_retry retry: retry_times
end end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment