unit.rb: no need to check all reports

* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no need to
  check all reports.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-07 16:27:32 +00:00
parent 8978ec05dc
commit 0dc6b83935
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Dec 8 01:27:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@ruby-lang.org>
* vm_eval.c (yield_under, eval_under): do not activate refinements

View File

@ -603,7 +603,7 @@ module Test
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