diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-15 01:23:36 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-15 15:07:31 +0900 |
commit | 679054208e320d4e639aa3dc1f16ad1a4945ac72 (patch) | |
tree | 05792abdd7c3e376fa49d61a7626528794740069 /tool | |
parent | 46291a29fbb92a6e04aa1b8555efb30cca2ab6dc (diff) |
Use `__dir__`
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/test/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 15e290e5f1..45c751033b 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -329,7 +329,7 @@ module Test def self.launch(ruby,args=[]) scale = EnvUtil.timeout_scale io = IO.popen([*ruby, "-W1", - "#{File.dirname(__FILE__)}/unit/parallel.rb", + "#{__dir__}/unit/parallel.rb", *("--timeout-scale=#{scale}" if scale), *args], "rb+") new(io, io.pid, :waiting) |