summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-14 14:17:42 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-14 14:17:42 +0000
commit7d6fe4e604f05fda58a2af4f32a16e87f0c99d01 (patch)
tree4a63ac84b095980ac48f48fb2d393ffcd77faae4 /bootstraptest
parent92c04380496c7ea6a1adca625ba12418eba4ed8b (diff)
* bootstraptest/runner.rb (show_progress): refine verbose mode.
(exec_test): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rwxr-xr-xbootstraptest/runner.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index c54a15749b..df58ca58f3 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -136,6 +136,7 @@ def exec_test(pathes)
@location = nil
pathes.each do |path|
$stderr.print "\n#{File.basename(path)} "
+ $stderr.puts if @verbose
load File.expand_path(path)
end
$stderr.puts
@@ -156,16 +157,21 @@ def exec_test(pathes)
end
def show_progress(message = '')
- $stderr.puts "\##{@count} #{@location}" if @verbose
+ if @verbose
+ $stderr.print "\##{@count} #{@location} "
+ end
faildesc = yield
if !faildesc
$stderr.print '.'
+ $stderr.puts if @verbose
else
$stderr.print 'F'
+ $stderr.puts if @verbose
error faildesc, message
end
rescue Exception => err
$stderr.print 'E'
+ $stderr.puts if @verbose
error err.message, message
end