Skip to content

Commit

Permalink
feat(systemtests): increase verbosity (#22306)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Oct 18, 2024
1 parent c1707b8 commit aa507fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/systemtests/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ func (c CLIWrapper) runWithInput(args []string, input io.Reader) (output string,
cmd.Stdin = input
return cmd.CombinedOutput()
}()

if c.Debug {
if gotErr != nil {
c.t.Logf("+++ ERROR output: %s - %s", gotOut, gotErr)
} else {
c.t.Logf("+++ output: %s", gotOut)
}
}

ok = c.assertErrorFn(c.t, gotErr, string(gotOut))
return strings.TrimSpace(string(gotOut)), ok
}
Expand Down

0 comments on commit aa507fa

Please sign in to comment.