mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test: TEST_COLORS
* bootstraptest/runner.rb (main): fixed typo. * lib/test/unit.rb (Test::Unit::Runner#_prepare_run): ditto. * sample/test.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fa6a2e0324
commit
19b4b7de3b
3 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ End
|
|||
end
|
||||
if @color
|
||||
# dircolors-like style
|
||||
colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w)=([^:]*)/)] : {}
|
||||
colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w+)=([^:]*)/)] : {}
|
||||
@passed = "\e[#{colors["pass"] || "32"}m"
|
||||
@failed = "\e[#{colors["fail"] || "31"}m"
|
||||
@reset = "\e[m"
|
||||
|
|
|
@ -677,7 +677,7 @@ module Test
|
|||
end
|
||||
if color
|
||||
# dircolors-like style
|
||||
colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w)=([^:]*)/)] : {}
|
||||
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"
|
||||
|
|
|
@ -24,7 +24,7 @@ PROGRESS.instance_eval do
|
|||
end
|
||||
if @color
|
||||
# dircolors-like style
|
||||
colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w)=([^:]*)/)] : {}
|
||||
colors = (colors = ENV['TEST_COLORS']) ? Hash[colors.scan(/(\w+)=([^:]*)/)] : {}
|
||||
@passed = "\e[#{colors["pass"] || "32"}m"
|
||||
@failed = "\e[#{colors["fail"] || "31"}m"
|
||||
@reset = "\e[m"
|
||||
|
|
Loading…
Reference in a new issue