From 779922622b7016fd06d595f37378b26825a194c6 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 8 May 2012 00:25:47 +0000 Subject: 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 --- sample/test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 sample/test.rb (limited to 'sample/test.rb') diff --git a/sample/test.rb b/sample/test.rb old mode 100644 new mode 100755 index cfc02dd9b8..cefdef419e --- a/sample/test.rb +++ b/sample/test.rb @@ -11,8 +11,8 @@ PROGRESS.instance_eval do @bs = "\b" * @rotator[0].size @tty = 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 = "" -- cgit v1.2.3