From ee90392232d441c5a13ca6bf018f453d6f7a73bb Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 19 Dec 2015 01:17:47 +0000 Subject: 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 --- test/lib/test/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/lib') 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 -- cgit v1.2.3