Skip to content

Commit

Permalink
Try printing each line separately
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Oct 16, 2023
1 parent 1e4f16f commit 87d1a47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vendor/knative.dev/pkg/test/upgrade/shell/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 87d1a47

Please sign in to comment.