From 42c7b5f09b3c661181215cf1cf9b918c3de2bcfb Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 26 May 2014 14:36:40 +0000 Subject: 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 --- test/lib/test/unit.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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 } -- cgit v1.2.3