зеркало из https://github.com/github/ruby.git
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:
Родитель
fa6a2e0324
Коммит
19b4b7de3b
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче