ruby-changes:52551
From: nobu <ko1@a...>
Date: Sun, 16 Sep 2018 23:32:36 +0900 (JST)
Subject: [ruby-changes:52551] nobu:r64763 (trunk): Propagate subprocess timeout scale option to worker processes
nobu 2018-09-16 23:32:30 +0900 (Sun, 16 Sep 2018) New Revision: 64763 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64763 Log: Propagate subprocess timeout scale option to worker processes Modified files: trunk/test/lib/test/unit.rb Index: test/lib/test/unit.rb =================================================================== --- test/lib/test/unit.rb (revision 64762) +++ test/lib/test/unit.rb (revision 64763) @@ -193,8 +193,10 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L193 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/