summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-02 08:56:10 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-02 08:56:10 +0000
commit7f6d21731c627b310b6853d80fdcc09bdcb424c9 (patch)
treea7d743384ca5e67cdf4b9464c5620a4803994b0b /lib
parentb14e2b4401db4746cc45ae9e4ce6350f7594f84f (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/test/unit.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index c29facca71..d1d40524a8 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -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 ""