mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
bootstraptest/runner.rb (show_limit): show dots only when printing to a tty
This commit is contained in:
parent
dbe834ab5a
commit
fe03bbaf34
1 changed files with 3 additions and 4 deletions
|
@ -265,11 +265,10 @@ end
|
|||
|
||||
def show_limit(testsrc, opt = '', **argh)
|
||||
result = get_result_string(testsrc, opt, **argh)
|
||||
if @tty
|
||||
$stderr.print '.'
|
||||
$stderr.print @reset
|
||||
$stderr.puts if @verbose
|
||||
|
||||
if @tty
|
||||
$stderr.puts "#{erase}#{result}"
|
||||
else
|
||||
@errbuf.push result
|
||||
|
|
Loading…
Reference in a new issue