summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-01 10:16:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-01 10:16:47 +0900
commitfe03bbaf3405b9e45bb3504fab5f4195ec6c3630 (patch)
tree592c8c696f3ac4d370dff878c614f543a2d7436c /bootstraptest
parentdbe834ab5ac4f90df5db9fc314b45890726cca3b (diff)
bootstraptest/runner.rb (show_limit): show dots only when printing to a tty
Diffstat (limited to 'bootstraptest')
-rwxr-xr-xbootstraptest/runner.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 8fce3d4b99..7786faa21c 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -265,11 +265,10 @@ end
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