[Misc #20661] Stop retrying tests in make test-all command by default (#11271)

[Misc #20661] Stop retrying tests in make test-all command by default
This commit is contained in:
Naoto Ono 2025-02-27 15:12:02 +09:00 committed by GitHub
parent 8bc7443128
commit 48b6c60969
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-02-27 06:12:19 +00:00
Merged-By: ono-max <onoto1998@gmail.com>
2 changed files with 4 additions and 4 deletions

View File

@ -298,7 +298,7 @@ module Test
opts.separator "parallel test options:"
options[:retry] = true
options[:retry] = false
opts.on '-j N', '--jobs N', /\A(t)?(\d+)\z/, "Allow run tests with N jobs at once" do |_, t, a|
options[:testing] = true & t # For testing

View File

@ -179,7 +179,7 @@ module TestParallel
end
def test_should_retry_failed_on_workers
spawn_runner
spawn_runner "--retry"
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
assert_match(/^Retrying\.+$/,buf)
end
@ -206,14 +206,14 @@ module TestParallel
end
def test_hungup
spawn_runner "--worker-timeout=1", "test4test_hungup.rb"
spawn_runner "--worker-timeout=1", "--retry", "test4test_hungup.rb"
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
assert_match(/^Retrying hung up testcases\.+$/, buf)
assert_match(/^2 tests,.* 0 failures,/, buf)
end
def test_retry_workers
spawn_runner "--worker-timeout=1", "test4test_slow_0.rb", "test4test_slow_1.rb", jobs: "2"
spawn_runner "--worker-timeout=1", "--retry", "test4test_slow_0.rb", "test4test_slow_1.rb", jobs: "2"
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
assert_match(/^Retrying hung up testcases\.+$/, buf)
assert_match(/^2 tests,.* 0 failures,/, buf)