diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 14:36:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-26 14:36:40 +0000 |
commit | 42c7b5f09b3c661181215cf1cf9b918c3de2bcfb (patch) | |
tree | 02f28240067ce60aea52a9dc725aa90d10a8bce7 /test/lib | |
parent | 76e37aa6364fa7613b9b517b71da9bb13bf294a8 (diff) | |
download | ruby-42c7b5f09b3c661181215cf1cf9b918c3de2bcfb.tar.gz |
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
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/test/unit.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index dbdba6edc3..12e4338794 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -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 } |