ruby-changes:26207
From: nobu <ko1@a...>
Date: Sat, 8 Dec 2012 01:27:43 +0900 (JST)
Subject: [ruby-changes:26207] nobu:r38264 (trunk): unit.rb: no need to check all reports
nobu 2012-12-08 01:27:32 +0900 (Sat, 08 Dec 2012) New Revision: 38264 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38264 Log: unit.rb: no need to check all reports * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no need to check all reports. Modified files: trunk/ChangeLog trunk/lib/test/unit.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38263) +++ ChangeLog (revision 38264) @@ -1,3 +1,8 @@ +Sat Dec 8 01:27:23 2012 Nobuyoshi Nakada <nobu@r...> + + * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no need to + check all reports. + Sat Dec 8 00:10:34 2012 Shugo Maeda <shugo@r...> * vm_eval.c (yield_under, eval_under): do not activate refinements Index: lib/test/unit.rb =================================================================== --- lib/test/unit.rb (revision 38263) +++ lib/test/unit.rb (revision 38264) @@ -603,7 +603,7 @@ unless @interrupt || !@options[:retry] || @need_quit @options[:parallel] = false - suites, rep = rep.partition {|r| r[:testcase] && r[:file] && !(r[:report].select{|e| !e[2].is_a?(MiniTest::Skip)}).empty?} + 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| eval("::"+r[:testcase])} del_status_line or puts -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/