mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/unit.rb: reduce error messages
* test/lib/test/unit.rb (non_options): reduce same error messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76e37aa636
commit
42c7b5f09b
1 changed files with 3 additions and 0 deletions
|
@ -245,6 +245,7 @@ module Test
|
|||
module RequireFiles # :nodoc: all
|
||||
def non_options(files, options)
|
||||
return false if !super
|
||||
errors = {}
|
||||
result = false
|
||||
files.each {|f|
|
||||
d = File.dirname(path = File.realpath(f))
|
||||
|
@ -255,6 +256,8 @@ module Test
|
|||
require path unless options[:parallel]
|
||||
result = true
|
||||
rescue LoadError
|
||||
next if errors[$!.message]
|
||||
errors[$!.message] = true
|
||||
puts "#{f}: #{$!}"
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue