1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

bootstraptest/runner.rb (show_limit): defer messages unless verbose and a tty

This commit is contained in:
Nobuyoshi Nakada 2019-07-01 17:09:08 +09:00
parent 70dcf5b368
commit 7f4f40ab31
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -265,11 +265,8 @@ 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
$stderr.puts "#{erase}#{result}"
if @tty and @verbose
$stderr.puts ".{#@reset}\n#{erase}#{result}"
else
@errbuf.push result
end