diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-08 00:25:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-08 00:25:47 +0000 |
commit | 779922622b7016fd06d595f37378b26825a194c6 (patch) | |
tree | 6b7b336d76faa49d4dcd3b9a75f1055cea360488 /lib | |
parent | 1af101f8edd4d0990fe275c11ffd282132055a81 (diff) | |
download | ruby-779922622b7016fd06d595f37378b26825a194c6.tar.gz |
tests: customizable colors
* bootstraptest/runner.rb, lib/test/unit.rb, sample/test.rb:
customizable colors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index b118ec1167..85e6885fab 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -713,7 +713,7 @@ module Test super @tty = $stdout.tty? if @tty and /mswin|mingw/ !~ RUBY_PLATFORM and /dumb/ !~ ENV["TERM"] - @failed_color = "\e[31m" + @failed_color = "\e[#{ENV['FAILED_COLOR']||'31'}m" @reset_color = "\e[m" else @failed_color = @reset_color = "" |