diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-19 01:17:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-19 01:17:47 +0000 |
commit | d205e680d30fb2b5e8b333b332c2a14ed61efa4b (patch) | |
tree | 839f90c26cfe554c1730de36dfb2435a6600b39b /test | |
parent | 94d36ce335fb7044d71c11737f570f0b223427ce (diff) | |
download | ruby-d205e680d30fb2b5e8b333b332c2a14ed61efa4b.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/test/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index 9c1100b771..f9c106f9ed 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -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 |