From 679054208e320d4e639aa3dc1f16ad1a4945ac72 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 15 Oct 2021 01:23:36 +0900 Subject: [PATCH] Use `__dir__` --- tool/lib/test/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)