summaryrefslogtreecommitdiff
path: root/sample/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/test.rb')
-rwxr-xr-x[-rw-r--r--]sample/test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb
index cfc02dd9b8..cefdef419e 100644..100755
--- 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 = ""