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

ruby-changes:23697

From: nobu <ko1@a...>
Date: Mon, 21 May 2012 16:37:05 +0900 (JST)
Subject: [ruby-changes:23697] nobu:r35748 (trunk): lib/test/unit.rb: not override job_status option

nobu	2012-05-21 16:36:58 +0900 (Mon, 21 May 2012)

  New Revision: 35748

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

  Log:
    lib/test/unit.rb: not override job_status option
    
    * lib/test/unit.rb (Test::Unit::Runner#_prepare_run): not override
      job_status option if no tty.

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

Index: lib/test/unit.rb
===================================================================
--- lib/test/unit.rb	(revision 35747)
+++ lib/test/unit.rb	(revision 35748)
@@ -666,7 +666,7 @@
       end
 
       def _prepare_run(suites, type)
-        options[:job_status] ||= @tty && !options[:verbose] ? :replace : :normal
+        options[:job_status] ||= :replace if @tty && !@verbose
         case options[:color]
         when :always
           color = true

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

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