From 8b6f1beba666675b7cb4f8d762a12e36f6bc0905 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 16 Sep 2018 14:32:30 +0000 Subject: Propagate subprocess timeout scale option to worker processes git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/test/unit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index 7a09466d1c..da05d57344 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -193,8 +193,10 @@ module Test class Worker def self.launch(ruby,args=[]) + scale = EnvUtil.subprocess_timeout_scale io = IO.popen([*ruby, "-W1", "#{File.dirname(__FILE__)}/unit/parallel.rb", + *("--subprocess-timeout-scale=#{scale}" if scale), *args], "rb+") new(io, io.pid, :waiting) end -- cgit v1.2.3