mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
af0e536d03
commit
8b6f1beba6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue