From bcc2c89eb58a9fa1b356e3326bcb4557308d2921 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 8 Jun 2014 01:22:11 +0000 Subject: [PATCH] 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 --- bootstraptest/runner.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 5168464dee..e7b7f55a15 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -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?