summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-08 01:22:11 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-08 01:22:11 (GMT)
commitbcc2c89eb58a9fa1b356e3326bcb4557308d2921 (patch)
treeff0c58781a0da1bde5e52e660c7169c6252eede5 /bootstraptest
parent75cbab3bb86a03a7bfc933e627e5d82d63e6bb33 (diff)
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
Diffstat (limited to 'bootstraptest')
-rwxr-xr-xbootstraptest/runner.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 5168464..e7b7f55 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?