1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/unit.rb: color on tty

* test/lib/test/unit.rb (Test::Unit::StatusLine#_prepare_run):
  colorize by default on tty.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-12-19 01:17:47 +00:00
parent 94d36ce335
commit d205e680d3

View file

@ -565,7 +565,7 @@ module Test
when :always
color = true
when :auto, nil
color = @options[:job_status] == :replace && /dumb/ !~ ENV["TERM"]
color = (@tty || @options[:job_status] == :replace) && /dumb/ !~ ENV["TERM"]
else
color = false
end