Skip to content

Commit 2879206

Browse files
authored
Merge pull request golang#598 from carolynvs/print-testoutput-newline
Print integration test output on a newline
2 parents 10aeca6 + b373c4f commit 2879206

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/test/integration_testproj.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,10 @@ func (p *IntegrationTestProject) DoRun(args []string) error {
174174

175175
if *PrintLogs {
176176
if p.stdout.Len() > 0 {
177-
p.t.Log("standard output:")
178-
p.t.Log(p.stdout.String())
177+
p.t.Logf("\nstandard output:%s", p.stdout.String())
179178
}
180179
if p.stderr.Len() > 0 {
181-
p.t.Log("standard error:")
182-
p.t.Log(p.stderr.String())
180+
p.t.Logf("standard error:\n%s", p.stderr.String())
183181
}
184182
}
185183
return status

0 commit comments

Comments
 (0)