From aea35d7235f324a53603b282af07946280f5b805 Mon Sep 17 00:00:00 2001 From: Martin Gencur Date: Mon, 16 Oct 2023 09:33:14 +0200 Subject: [PATCH] Print each line separately in shell executor --- test/upgrade/shell/executor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/upgrade/shell/executor.go b/test/upgrade/shell/executor.go index d41ccc765a..020f0d3edd 100644 --- a/test/upgrade/shell/executor.go +++ b/test/upgrade/shell/executor.go @@ -185,7 +185,9 @@ func (w testingWriter) Write(p []byte) (n int, err error) { // Strip trailing newline because t.Log always adds one. p = bytes.TrimRight(p, "\n") - w.t.Logf("%s", p) + for _, line := range strings.Split(string(p), "\n") { + w.t.Logf(line) + } return n, nil }