summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstraptest/runner.rb4
-rwxr-xr-xsample/test.rb4
-rw-r--r--test/lib/test/unit.rb6
3 files changed, 7 insertions, 7 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index d58b824..fa5e853 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 d7f80b1..85a11e0 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 c088d98..996134e 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 = ""