summaryrefslogtreecommitdiff
path: root/lib/test/unit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r--lib/test/unit.rb2
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 = ""