From c80aea730b3b6df50705f8bb453ab062cef555ba Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Mon, 10 Jun 2024 12:10:56 +0900 Subject: [PATCH] respect `RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE` GC benchmarks will spend long time with assertions so we need to respect `RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE` environment variable. --- bootstraptest/runner.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 329d429f333c7c..4e28d30256e688 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 (tsstr = ENV['RUBY_TEST_SUBPROCESS_TIMEOUT_SCALE']) && (ts = tsstr.to_i) > 1 + BT.timeout_scale *= ts + end + # BT.wn = 1 dir = nil quiet = false