[前][次][番号順一覧][スレッド一覧]

ruby-changes:24060

From: nobu <ko1@a...>
Date: Sat, 16 Jun 2012 13:23:46 +0900 (JST)
Subject: [ruby-changes:24060] nobu:r36111 (trunk): test: reduce unnecessary output

nobu	2012-06-16 13:23:34 +0900 (Sat, 16 Jun 2012)

  New Revision: 36111

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36111

  Log:
    test: reduce unnecessary output
    
    * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): print retrying
      message only if retrying.

  Modified files:
    trunk/lib/test/unit.rb

Index: lib/test/unit.rb
===================================================================
--- lib/test/unit.rb	(revision 36110)
+++ lib/test/unit.rb	(revision 36111)
@@ -611,9 +611,10 @@
             suites.map {|r| r[:file]}.uniq.each {|file| require file}
             suites.map! {|r| eval("::"+r[:testcase])}
             del_status_line or puts
-            puts "Retrying..."
-            puts ""
-            _run_suites(suites, type)
+            unless suites.empty?
+              puts "Retrying..."
+              _run_suites(suites, type)
+            end
           end
           unless rep.empty?
             rep.each do |r|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]