From d6a697ddaeaa90b508fda62d47271b11a38bba28 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 12 Apr 2024 17:22:00 +0100 Subject: [PATCH] test: more logging --- awscli_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/awscli_test.go b/awscli_test.go index bd2516c..6b25f5e 100644 --- a/awscli_test.go +++ b/awscli_test.go @@ -174,6 +174,9 @@ func (tc *testCLI) output(method string, subcommand string, args ...string) (out if _, ok := err.(*exec.Error); ok { tc.Skip("aws cli not found on $PATH") } + if err != nil { + tc.Log(string(out)) + } tc.OK(err) return out } @@ -184,6 +187,9 @@ func (tc *testCLI) combinedOutput(method string, subcommand string, args ...stri if _, ok := err.(*exec.Error); ok { tc.Skip("aws cli not found on $PATH") } + if err != nil { + tc.Log(string(out)) + } tc.OK(err) return out }