diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-28 15:28:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-28 15:28:54 +0000 |
commit | 387c2004a662f4edc356bad7b8f987b941c01ae1 (patch) | |
tree | f6fb0d7f8aa67ddc620d1eee024e3ae548ff45bb /test | |
parent | 1ed1a38c3e0d7a9ea341df3442afb86481a5e722 (diff) | |
download | ruby-387c2004a662f4edc356bad7b8f987b941c01ae1.tar.gz |
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')
-rw-r--r-- | test/lib/test/unit.rb | 3 |
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 (.+?)$/ |