mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/test/unit.rb: split platform condition
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): split platform condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2f76e6d34c
commit
7d303b2d10
1 changed files with 2 additions and 1 deletions
|
@ -671,7 +671,8 @@ module Test
|
|||
when :always
|
||||
color = true
|
||||
when :auto, nil
|
||||
color = @options[:job_status] == :replace && /mswin|mingw/ !~ RUBY_PLATFORM && /dumb/ !~ ENV["TERM"]
|
||||
color = @options[:job_status] == :replace && /dumb/ !~ ENV["TERM"]
|
||||
color &&= /mswin|mingw/ !~ RUBY_PLATFORM
|
||||
else
|
||||
color = false
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue