From 17dacc3cb88f1f35733f829bcbdb46dc08cfc040 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Fri, 18 Oct 2024 09:35:55 +0200 Subject: [PATCH] feat(systemtests): increase verbosity (#22306) (cherry picked from commit aa507faeab647fff786d936951c10032c0f24c7e) --- 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 }