From 89219a38fc0f624b17afff004fa257a548892b87 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:28:10 +0200 Subject: [PATCH] feat(systemtests): increase verbosity (backport #22306) (#22310) Co-authored-by: Julien Robert --- tests/systemtests/cli.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/systemtests/cli.go b/tests/systemtests/cli.go index 6c8dffc4bbd5..a39cc0dd6d16 100644 --- a/tests/systemtests/cli.go +++ b/tests/systemtests/cli.go @@ -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 }