feat(systemtests): increase verbosity (#22306)

This commit is contained in:
Julien Robert 2024-10-18 09:35:55 +02:00 committed by GitHub
parent c1707b8308
commit aa507faeab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}