ruby-changes:60877
From: Nobuyoshi <ko1@a...>
Date: Thu, 23 Apr 2020 10:34:05 +0900 (JST)
Subject: [ruby-changes:60877] 2e87488d13 (master): Expand retrying test file names to realpath
https://git.ruby-lang.org/ruby.git/commit/?id=2e87488d13 From 2e87488d13ebbbdcb8778b0bd2bfae2223e0a8ec Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 23 Apr 2020 10:25:09 +0900 Subject: Expand retrying test file names to realpath As well as worker processes do in Test::Unit::Worker#run. diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 376ca8d..a2ee464 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -527,7 +527,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L527 parallel = @options[:parallel] @options[:parallel] = false suites, rep = rep.partition {|r| r[:testcase] && r[:file] && r[:report].any? {|e| !e[2].is_a?(MiniTest::Skip)}} - suites.map {|r| r[:file]}.uniq.each {|file| require file} + suites.map {|r| File.realpath(r[:file])}.uniq.each {|file| require file} suites.map! {|r| eval("::"+r[:testcase])} del_status_line or puts unless suites.empty? -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/