Skip to content
Snippets Groups Projects

Do not retry failed tests if we reached the max number of failures

Merged David Dieulivol requested to merge ddieulivol-do_not_retry_if_max_failures_in_specs into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -113,6 +113,8 @@ function rspec_simple_job() {
}
function rspec_simple_job_with_retry () {
set -o pipefail
local rspec_run_status=0
rspec_simple_job "${1}" "${2}" "${3}" | tee "${RSPEC_JOB_OUTPUT_PATH}"
@@ -151,7+153,7 @@
function handle_retry_rspec_in_new_process() {
local rspec_run_status="${1}"
if [[ $rspec_run_status -eq 2 ]]; then
echoerr "Not retrying failing examples since there were errors happening outside of the RSpec examples!"
elif [[ $rspec_run_status -eq 1 ]]; then
@@ -177,7+179,7 @@
}
function rspec_paralellized_job() {
set -o pipefail
read -ra job_name <<< "${CI_JOB_NAME}"
local test_tool="${job_name[0]}"
local test_level="${job_name[1]}"
Loading