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

Show the epapsed time for failed test as well.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-06-08 01:22:11 +00:00
parent 75cbab3bb8
commit bcc2c89eb5

View file

@ -214,12 +214,14 @@ def show_progress(message = '')
if @tty
$stderr.print "#{@progress_bs}#{@progress[@count % @progress.size]}"
elsif @verbose
$stderr.printf("%6.3f\n", t)
$stderr.printf(". %.3f\n", t)
else
$stderr.print '.'
end
else
$stderr.print "#{@failed}F#{@reset}"
$stderr.print "#{@failed}F"
$stderr.printf(" %.3f", t) if @verbose
$stderr.print "#{@reset}"
$stderr.puts if @verbose
error faildesc, message
unless errout.empty?