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 | 75a865406f8b65827a414059b609f8077d9070ed (patch) | |
tree | 193eeee5b147594936ea98fb399441b6b69b90d1 | |
parent | 1fc214c04dde17a23191aeb35ec613ec31cbf4b9 (diff) |
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
-rwxr-xr-x | bootstraptest/runner.rb | 4 | ||||
-rwxr-xr-x | sample/test.rb | 4 | ||||
-rw-r--r-- | test/lib/test/unit.rb | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index d58b824386..fa5e8537e8 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -137,8 +137,8 @@ End if @color # dircolors-like style colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w+)=([^:]*)/)] : {} - @passed = "\e[#{colors["pass"] || "32"}m" - @failed = "\e[#{colors["fail"] || "31"}m" + @passed = "\e[;#{colors["pass"] || "32"}m" + @failed = "\e[;#{colors["fail"] || "31"}m" @reset = "\e[m" else @passed = @failed = @reset = "" diff --git a/sample/test.rb b/sample/test.rb index d7f80b1e39..85a11e0d4d 100755 --- a/sample/test.rb +++ b/sample/test.rb @@ -34,8 +34,8 @@ class Progress if @color # dircolors-like style colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w+)=([^:]*)/)] : {} - @passed = "\e[#{colors["pass"] || "32"}m" - @failed = "\e[#{colors["fail"] || "31"}m" + @passed = "\e[;#{colors["pass"] || "32"}m" + @failed = "\e[;#{colors["fail"] || "31"}m" @reset = "\e[m" else @passed = @failed = @reset = "" 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 = "" |