From 703cc6748fcc9b03a9648fdc59993d3caa8f2cb1 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 28 Oct 2016 15:28:54 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/test/unit.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/lib/test') diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index 2d0977eb39..2c4a052b6f 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -257,7 +257,7 @@ module Test 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 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 (.+?)$/ -- cgit v1.2.3