summaryrefslogtreecommitdiff
path: root/test/lib/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-28 15:28:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-28 15:28:54 +0000
commit703cc6748fcc9b03a9648fdc59993d3caa8f2cb1 (patch)
treef6fb0d7f8aa67ddc620d1eee024e3ae548ff45bb /test/lib/test
parentb24e093296c213318f2b5efa070d8294205d4ea3 (diff)
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
Diffstat (limited to 'test/lib/test')
-rw-r--r--test/lib/test/unit.rb3
1 files changed, 1 insertions, 2 deletions
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 (.+?)$/