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

ruby-changes:42149

From: nobu <ko1@a...>
Date: Tue, 22 Mar 2016 10:11:10 +0900 (JST)
Subject: [ruby-changes:42149] nobu:r54223 (trunk): test/unit.rb: defer failures in non-replace mode

nobu	2016-03-22 10:11:03 +0900 (Tue, 22 Mar 2016)

  New Revision: 54223

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54223

  Log:
    test/unit.rb: defer failures in non-replace mode
    
    * test/lib/test/unit.rb (Test::Unit::StatusLine#failed): print
      failed messages only if replacing mode, otherwise defer them
      until the end, to get rid of interleaving failures with progress
      messages.  refix r54195.

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/test/unit.rb
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 54222)
+++ test/lib/test/unit.rb	(revision 54223)
@@ -650,7 +650,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L650
       def succeed; del_status_line; end
 
       def failed(s)
-        return if s and @options[:verbose]
+        return if s and @options[:job_status] != :replace
         sep = "\n"
         @report_count ||= 0
         report.each do |msg|
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54222)
+++ ChangeLog	(revision 54223)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Mar 22 10:11:01 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): print
+	  failed messages only if replacing mode, otherwise defer them
+	  until the end, to get rid of interleaving failures with progress
+	  messages.  refix r54195.
+
 Tue Mar 22 03:45:03 2016  NARUSE, Yui  <naruse@r...>
 
 	* time.c (MUL_OVERFLOW_FIXWV_P): defined for FIXWV.

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

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