1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-10-28 15:28:54 +00:00
parent b24e093296
commit 703cc6748f

View file

@ -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 (.+?)$/