aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-01 18:18:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-01 18:53:41 +0900
commit88c12a29372e3f908190c6af0aa1b2ac6b78fbd1 (patch)
tree169c030518d8e1afd994d673a8532222e24d863a /bootstraptest
parent56f2fd3bc9bbc69abe75def25f89dac41eb19773 (diff)
downloadruby-88c12a29372e3f908190c6af0aa1b2ac6b78fbd1.tar.gz
Indent folded bootstraptest dots
Diffstat (limited to 'bootstraptest')
-rwxr-xr-xbootstraptest/runner.rb26
1 files changed, 16 insertions, 10 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index e7f4fb69fb..1d219be71e 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -75,27 +75,33 @@ bt = Struct.new(:ruby,
:columns,
:window_width,
:width,
+ :indent,
:platform,
)
BT = Class.new(bt) do
+ def indent=(n)
+ super
+ if (self.columns ||= 0) < n
+ $stderr.print(' ' * (n - self.columns))
+ end
+ self.columns = indent
+ end
+
def putc(c)
unless self.quiet
if self.window_width == nil
- if BT.tty
- unless w = ENV["COLUMNS"] and (w = w.to_i) > 0
- w = 80
- end
- w -= 1
- else
- w = false
+ unless w = ENV["COLUMNS"] and (w = w.to_i) > 0
+ w = 80
end
+ w -= 1
self.window_width = w
end
if self.window_width and self.columns >= self.window_width
- $stderr.puts
- self.columns = 0
+ $stderr.print "\n", " " * (self.indent ||= 0)
+ self.columns = indent
end
$stderr.print c
+ $stderr.flush
self.columns += 1
end
end
@@ -293,7 +299,7 @@ def concurrent_exec_test
end
end
- BT.putc ' '
+ BT.indent = 1
aq.close
i = 1
term_wn = 0