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 /bootstraptest | |
parent | 1af101f8edd4d0990fe275c11ffd282132055a81 (diff) |
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 'bootstraptest')
-rwxr-xr-x | bootstraptest/runner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 9341a33edd..7455e8390c 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -114,8 +114,8 @@ End @progress_bs = "\b" * @progress[0].size @tty = !@verbose && $stderr.tty? if @tty and /mswin|mingw/ !~ RUBY_PLATFORM and /dumb/ !~ ENV["TERM"] - @passed = "\e[32m" - @failed = "\e[31m" + @passed = "\e[#{ENV['PASSED_COLOR']||'32'}m" + @failed = "\e[#{ENV['FAILED_COLOR']||'31'}m" @reset = "\e[m" else @passed = @failed = @reset = "" |