[前][次][番号順一覧][スレッド一覧]

ruby-changes:34300

From: akr <ko1@a...>
Date: Sun, 8 Jun 2014 10:22:19 +0900 (JST)
Subject: [ruby-changes:34300] akr:r46381 (trunk): Show the epapsed time for failed test as well.

akr	2014-06-08 10:22:11 +0900 (Sun, 08 Jun 2014)

  New Revision: 46381

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46381

  Log:
    Show the epapsed time for failed test as well.

  Modified files:
    trunk/bootstraptest/runner.rb
Index: bootstraptest/runner.rb
===================================================================
--- bootstraptest/runner.rb	(revision 46380)
+++ bootstraptest/runner.rb	(revision 46381)
@@ -214,12 +214,14 @@ def show_progress(message = '') https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L214
     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?

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]