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:
parent
b24e093296
commit
703cc6748f
1 changed files with 1 additions and 2 deletions
|
@ -257,7 +257,7 @@ module Test
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
if @file
|
if @file and @status != :ready
|
||||||
"#{@pid}=#{@file}"
|
"#{@pid}=#{@file}"
|
||||||
else
|
else
|
||||||
"#{@pid}:#{@status.to_s.ljust(7)}"
|
"#{@pid}:#{@status.to_s.ljust(7)}"
|
||||||
|
@ -380,7 +380,6 @@ module Test
|
||||||
result << r[0..1] unless r[0..1] == [nil,nil]
|
result << r[0..1] unless r[0..1] == [nil,nil]
|
||||||
rep << {file: worker.real_file, report: r[2], result: r[3], testcase: r[5]}
|
rep << {file: worker.real_file, report: r[2], result: r[3], testcase: r[5]}
|
||||||
$:.push(*r[4]).uniq!
|
$:.push(*r[4]).uniq!
|
||||||
worker.file = nil
|
|
||||||
jobs_status(worker) if @options[:job_status] == :replace
|
jobs_status(worker) if @options[:job_status] == :replace
|
||||||
return true
|
return true
|
||||||
when /^p (.+?)$/
|
when /^p (.+?)$/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue