diff options
author | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-21 02:23:21 +0000 |
---|---|---|
committer | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-21 02:23:21 +0000 |
commit | 80b64d145a30613a7d357f9f942e5846c064ea0e (patch) | |
tree | 2db6323ad88eeb576a3997dba47d558b9c64942d /lib/test | |
parent | 580f7c95a522eec6b9ea12ba81a02c76731154ad (diff) | |
download | ruby-80b64d145a30613a7d357f9f942e5846c064ea0e.tar.gz |
* lib/test/unit.rb: Refactoring. Unified if and elsif.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index a69c039cc3..099fcb0c14 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -487,20 +487,13 @@ module Test end end - if @interrupt || @opts[:no_retry] + if @interrupt || @opts[:no_retry] || @need_quit rep.each do |r| report.push(*r[:report]) end @errors += rep.map{|x| x[:result][0] }.inject(:+) @failures += rep.map{|x| x[:result][1] }.inject(:+) @skips += rep.map{|x| x[:result][2] }.inject(:+) - elsif @need_quit - rep.each do |r| - report.push(*r[:report]) - @errors += r[:result][0] - @failures += r[:result][1] - @skips += r[:result][2] - end else puts "" puts "Retrying..." |