mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (_run_parallel): Delete status line before showing
results. Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250] * lib/test/unit.rb (_run_parallel): Fix strange result when disabled retrying. Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b14e2b4401
commit
7f6d21731c
2 changed files with 17 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
Fri Nov 2 17:55:39 2012 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* lib/test/unit.rb (_run_parallel): Delete status line before showing
|
||||
results. Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250]
|
||||
|
||||
* lib/test/unit.rb (_run_parallel): Fix strange result when disabled retrying.
|
||||
Patch by Hiroshi Shirosaki. [Bug #6897] [ruby-core:47250]
|
||||
|
||||
Fri Nov 2 17:52:12 2012 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* object.c (rb_mod_to_s): Module#{to_s,inspect}, when invoked on
|
||||
|
|
|
@ -616,15 +616,20 @@ module Test
|
|||
_run_suites(suites, type)
|
||||
end
|
||||
end
|
||||
unless @options[:retry]
|
||||
del_status_line or puts
|
||||
end
|
||||
unless rep.empty?
|
||||
rep.each do |r|
|
||||
r[:report].each do |f|
|
||||
report.push(puke(*f)) if f
|
||||
puke(*f) if f
|
||||
end
|
||||
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(:+)
|
||||
if @options[:retry]
|
||||
@errors += rep.map{|x| x[:result][0] }.inject(:+)
|
||||
@failures += rep.map{|x| x[:result][1] }.inject(:+)
|
||||
@skips += rep.map{|x| x[:result][2] }.inject(:+)
|
||||
end
|
||||
end
|
||||
unless @warnings.empty?
|
||||
warn ""
|
||||
|
|
Loading…
Reference in a new issue