diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-23 10:25:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-23 10:25:09 +0900 |
commit | 2e87488d13ebbbdcb8778b0bd2bfae2223e0a8ec (patch) | |
tree | ee4987ebcd5d25a70e84d85de0926b9fdc7d07ae | |
parent | 74c8aaef7dd09043cf9f13381c84022da7f1c253 (diff) | |
download | ruby-2e87488d13ebbbdcb8778b0bd2bfae2223e0a8ec.tar.gz |
Expand retrying test file names to realpath
As well as worker processes do in Test::Unit::Worker#run.
-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 376ca8d3d4..a2ee464ff1 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -527,7 +527,7 @@ module Test 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? |