diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 329d429f333c7c..3e54318ac9564e 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -163,6 +163,10 @@ def main BT.quiet = false BT.timeout = 180 BT.timeout_scale = (defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? ? 3 : 1) # for --jit-wait + if (ts = (ENV["RUBY_TEST_TIMEOUT_SCALE"] || ENV["RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE"]).to_i) > 1 + BT.timeout_scale *= ts + end + # BT.wn = 1 dir = nil quiet = false