mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
92c0438049
commit
7d6fe4e604
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Jun 14 23:16:22 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* bootstraptest/runner.rb (show_progress): refine verbose mode.
|
||||||
|
(exec_test): ditto.
|
||||||
|
|
||||||
Tue Jun 14 23:02:36 2011 Tanaka Akira <akr@fsij.org>
|
Tue Jun 14 23:02:36 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* bootstraptest/runner.rb (show_progress): extracted from assert_check.
|
* bootstraptest/runner.rb (show_progress): extracted from assert_check.
|
||||||
|
|
|
@ -136,6 +136,7 @@ def exec_test(pathes)
|
||||||
@location = nil
|
@location = nil
|
||||||
pathes.each do |path|
|
pathes.each do |path|
|
||||||
$stderr.print "\n#{File.basename(path)} "
|
$stderr.print "\n#{File.basename(path)} "
|
||||||
|
$stderr.puts if @verbose
|
||||||
load File.expand_path(path)
|
load File.expand_path(path)
|
||||||
end
|
end
|
||||||
$stderr.puts
|
$stderr.puts
|
||||||
|
@ -156,16 +157,21 @@ def exec_test(pathes)
|
||||||
end
|
end
|
||||||
|
|
||||||
def show_progress(message = '')
|
def show_progress(message = '')
|
||||||
$stderr.puts "\##{@count} #{@location}" if @verbose
|
if @verbose
|
||||||
|
$stderr.print "\##{@count} #{@location} "
|
||||||
|
end
|
||||||
faildesc = yield
|
faildesc = yield
|
||||||
if !faildesc
|
if !faildesc
|
||||||
$stderr.print '.'
|
$stderr.print '.'
|
||||||
|
$stderr.puts if @verbose
|
||||||
else
|
else
|
||||||
$stderr.print 'F'
|
$stderr.print 'F'
|
||||||
|
$stderr.puts if @verbose
|
||||||
error faildesc, message
|
error faildesc, message
|
||||||
end
|
end
|
||||||
rescue Exception => err
|
rescue Exception => err
|
||||||
$stderr.print 'E'
|
$stderr.print 'E'
|
||||||
|
$stderr.puts if @verbose
|
||||||
error err.message, message
|
error err.message, message
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue