зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
580f7c95a5
Коммит
80b64d145a
|
@ -1,3 +1,7 @@
|
|||
Mon Mar 21 11:21:32 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* lib/test/unit.rb: Refactoring. Unified if and elsif.
|
||||
|
||||
Sun Mar 20 23:09:34 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_strftime.c: checks duplicated modifiers.
|
||||
|
|
|
@ -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..."
|
||||
|
|
Загрузка…
Ссылка в новой задаче