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 }