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

ruby-changes:44444

From: nobu <ko1@a...>
Date: Sat, 29 Oct 2016 00:28:59 +0900 (JST)
Subject: [ruby-changes:44444] nobu:r56517 (trunk): test/unit.rb: no file name if idle [ci skip]

nobu	2016-10-29 00:28:54 +0900 (Sat, 29 Oct 2016)

  New Revision: 56517

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

  Log:
    test/unit.rb: no file name if idle [ci skip]
    
    * test/lib/test/unit.rb (Test::Unit::Parallel::Worker#to_s): show
      file name if not idling.

  Modified files:
    trunk/test/lib/test/unit.rb
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 56516)
+++ test/lib/test/unit.rb	(revision 56517)
@@ -257,7 +257,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L257
         end
 
         def to_s
-          if @file
+          if @file and @status != :ready
             "#{@pid}=#{@file}"
           else
             "#{@pid}:#{@status.to_s.ljust(7)}"
@@ -380,7 +380,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L380
           result << r[0..1] unless r[0..1] == [nil,nil]
           rep    << {file: worker.real_file, report: r[2], result: r[3], testcase: r[5]}
           $:.push(*r[4]).uniq!
-          worker.file = nil
           jobs_status(worker) if @options[:job_status] == :replace
           return true
         when /^p (.+?)$/

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

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