feat(systemtests): increase verbosity (backport #22306) (#22310)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2024-10-18 13:28:10 +02:00
committed by GitHub
co-authored by Julien Robert
parent 53ae84a49c
commit 89219a38fc
+9
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
}