Skip to content

Commit

Permalink
feat(systemtests): increase verbosity (#22306)
Browse files Browse the repository at this point in the history
(cherry picked from commit aa507fa)
  • Loading branch information
julienrbrt authored and mergify[bot] committed Oct 18, 2024
1 parent 53ae84a commit 17dacc3
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 17dacc3

Please sign in to comment.