1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Expand retrying test file names to realpath

As well as worker processes do in Test::Unit::Worker#run.
This commit is contained in:
Nobuyoshi Nakada 2020-04-23 10:25:09 +09:00
parent 74c8aaef7d
commit 2e87488d13
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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?