ruby-changes:26769
From: nobu <ko1@a...>
Date: Tue, 15 Jan 2013 10:03:06 +0900 (JST)
Subject: [ruby-changes:26769] nobu:r38820 (trunk): runner.rb: colorize
nobu 2013-01-15 09:59:16 +0900 (Tue, 15 Jan 2013) New Revision: 38820 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38820 Log: runner.rb: colorize * bootstraptest/runner.rb (exec_test): colorize final messages. Modified files: trunk/bootstraptest/runner.rb Index: bootstraptest/runner.rb =================================================================== --- bootstraptest/runner.rb (revision 38819) +++ bootstraptest/runner.rb (revision 38820) @@ -184,14 +184,14 @@ def exec_test(pathes) https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L184 if @count == 0 $stderr.puts "No tests, no problem" else - $stderr.puts "PASS all #{@count} tests" + $stderr.puts "#{@passed}PASS#{@reset} all #{@count} tests" end exit true else @errbuf.each do |msg| $stderr.puts msg end - $stderr.puts "FAIL #{@error}/#{@count} tests failed" + $stderr.puts "#{@failed}FAIL#{@reset} #{@error}/#{@count} tests failed" exit false end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/