mirror of
https://github.com/alist-org/gofakes3.git
synced 2025-12-24 12:58:04 +08:00
test: more logging
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user