mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use __dir__
This commit is contained in:
parent
46291a29fb
commit
679054208e
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ module Test
|
||||||
def self.launch(ruby,args=[])
|
def self.launch(ruby,args=[])
|
||||||
scale = EnvUtil.timeout_scale
|
scale = EnvUtil.timeout_scale
|
||||||
io = IO.popen([*ruby, "-W1",
|
io = IO.popen([*ruby, "-W1",
|
||||||
"#{File.dirname(__FILE__)}/unit/parallel.rb",
|
"#{__dir__}/unit/parallel.rb",
|
||||||
*("--timeout-scale=#{scale}" if scale),
|
*("--timeout-scale=#{scale}" if scale),
|
||||||
*args], "rb+")
|
*args], "rb+")
|
||||||
new(io, io.pid, :waiting)
|
new(io, io.pid, :waiting)
|
||||||
|
|
Loading…
Add table
Reference in a new issue