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:
parent
74c8aaef7d
commit
2e87488d13
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ module Test
|
||||||
parallel = @options[:parallel]
|
parallel = @options[:parallel]
|
||||||
@options[:parallel] = false
|
@options[:parallel] = false
|
||||||
suites, rep = rep.partition {|r| r[:testcase] && r[:file] && r[:report].any? {|e| !e[2].is_a?(MiniTest::Skip)}}
|
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])}
|
suites.map! {|r| eval("::"+r[:testcase])}
|
||||||
del_status_line or puts
|
del_status_line or puts
|
||||||
unless suites.empty?
|
unless suites.empty?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue