From 19b4b7de3b82466eb99b4027430cdf88718610a0 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 15 Jun 2012 01:38:32 +0000 Subject: 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 --- lib/test/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/test') diff --git a/lib/test/unit.rb b/lib/test/unit.rb index ff489d67b9..7b3554cbed 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -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" -- cgit v1.2.3