test: more logging

This commit is contained in:
Nick Craig-Wood
2024-04-12 17:22:00 +01:00
parent e99f68c813
commit d6a697ddae

View File

@@ -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
}