Commit 1bf00e8d authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rerun-jobs-change-exit-code' into 'master'

Previous pipeline test reruns: Do not fail when rerun test file limit exceeded

See merge request gitlab-org/gitlab!73066
parents 62ff6345 97075470
......@@ -196,8 +196,8 @@ function rspec_rerun_previous_failed_tests() {
local test_file_count=$(wc -w "${matching_tests_file}" | awk {'print $1'})
if [[ "${test_file_count}" -gt "${test_file_count_threshold}" ]]; then
echo "This job is intentionally failed because there are more than ${test_file_count_threshold} test files to rerun."
exit 1
echo "This job is intentionally exited because there are more than ${test_file_count_threshold} test files to rerun."
exit 0
fi
if [[ -n $test_files ]]; then
......
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