Skip to content

Commit

Permalink
feat(systemtests): increase verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 17, 2024
1 parent 29ea9c8 commit cc23c2a
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 cc23c2a

Please sign in to comment.