[Misc #20661] Stop retrying tests in make test-all command by default
This commit is contained in:
parent
8bc7443128
commit
48b6c60969
Notes:
git
2025-02-27 06:12:19 +00:00
Merged-By: ono-max <onoto1998@gmail.com>
@ -298,7 +298,7 @@ module Test
|
|||||||
|
|
||||||
opts.separator "parallel test options:"
|
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|
|
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
|
options[:testing] = true & t # For testing
|
||||||
|
@ -179,7 +179,7 @@ module TestParallel
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_should_retry_failed_on_workers
|
def test_should_retry_failed_on_workers
|
||||||
spawn_runner
|
spawn_runner "--retry"
|
||||||
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
|
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
|
||||||
assert_match(/^Retrying\.+$/,buf)
|
assert_match(/^Retrying\.+$/,buf)
|
||||||
end
|
end
|
||||||
@ -206,14 +206,14 @@ module TestParallel
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_hungup
|
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}
|
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
|
||||||
assert_match(/^Retrying hung up testcases\.+$/, buf)
|
assert_match(/^Retrying hung up testcases\.+$/, buf)
|
||||||
assert_match(/^2 tests,.* 0 failures,/, buf)
|
assert_match(/^2 tests,.* 0 failures,/, buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_retry_workers
|
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}
|
buf = Timeout.timeout(TIMEOUT) {@test_out.read}
|
||||||
assert_match(/^Retrying hung up testcases\.+$/, buf)
|
assert_match(/^Retrying hung up testcases\.+$/, buf)
|
||||||
assert_match(/^2 tests,.* 0 failures,/, buf)
|
assert_match(/^2 tests,.* 0 failures,/, buf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user