ruby-changes:56308
From: Nobuyoshi <ko1@a...>
Date: Mon, 1 Jul 2019 11:36:38 +0900 (JST)
Subject: [ruby-changes:56308] Nobuyoshi Nakada: fe03bbaf34 (master): bootstraptest/runner.rb (show_limit): show dots only when printing to a tty
https://git.ruby-lang.org/ruby.git/commit/?id=fe03bbaf34 From fe03bbaf3405b9e45bb3504fab5f4195ec6c3630 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 1 Jul 2019 10:16:47 +0900 Subject: bootstraptest/runner.rb (show_limit): show dots only when printing to a tty diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 8fce3d4..7786faa 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -265,11 +265,10 @@ end https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L265 def show_limit(testsrc, opt = '', **argh) result = get_result_string(testsrc, opt, **argh) - $stderr.print '.' - $stderr.print @reset - $stderr.puts if @verbose - if @tty + $stderr.print '.' + $stderr.print @reset + $stderr.puts if @verbose $stderr.puts "#{erase}#{result}" else @errbuf.push result -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/