1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

runner.rb: colorize

* bootstraptest/runner.rb (exec_test): colorize final messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-01-15 00:59:16 +00:00
parent e32ce1868f
commit cccd464e4d

View file

@ -184,14 +184,14 @@ def exec_test(pathes)
if @count == 0 if @count == 0
$stderr.puts "No tests, no problem" $stderr.puts "No tests, no problem"
else else
$stderr.puts "PASS all #{@count} tests" $stderr.puts "#{@passed}PASS#{@reset} all #{@count} tests"
end end
exit true exit true
else else
@errbuf.each do |msg| @errbuf.each do |msg|
$stderr.puts msg $stderr.puts msg
end end
$stderr.puts "FAIL #{@error}/#{@count} tests failed" $stderr.puts "#{@failed}FAIL#{@reset} #{@error}/#{@count} tests failed"
exit false exit false
end end
end end