1
0
Fork 0
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:
nobu 2012-05-30 01:29:08 +00:00
parent 2f76e6d34c
commit 7d303b2d10

View file

@ -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