From cc23c2aabae93836f9505d89bc9e26d39bd91784 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Thu, 17 Oct 2024 16:57:28 +0200 Subject: [PATCH] feat(systemtests): increase verbosity --- 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 }