diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-17 00:50:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-17 00:50:02 +0000 |
commit | 25a62e5e41d79043a21d238d7f0f4b502cf34b31 (patch) | |
tree | 193eeee5b147594936ea98fb399441b6b69b90d1 /test/lib | |
parent | 2ddd8b53665c70b1b92db8e398f5f43cc0726c1a (diff) | |
download | ruby-25a62e5e41d79043a21d238d7f0f4b502cf34b31.tar.gz |
reset colors
* bootstraptest/runner.rb, sample/test.rb, test/lib/test/unit.rb:
reset for each colors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/test/unit.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index c088d98068..996134eaf3 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -597,9 +597,9 @@ module Test if color # dircolors-like style colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w+)=([^:]*)/)] : {} - @passed_color = "\e[#{colors["pass"] || "32"}m" - @failed_color = "\e[#{colors["fail"] || "31"}m" - @skipped_color = "\e[#{colors["skip"] || "33"}m" + @passed_color = "\e[;#{colors["pass"] || "32"}m" + @failed_color = "\e[;#{colors["fail"] || "31"}m" + @skipped_color = "\e[;#{colors["skip"] || "33"}m" @reset_color = "\e[m" else @passed_color = @failed_color = @skipped_color = @reset_color = "" |