Skip to content

Commit

Permalink
e2e: log stderror in execCommandInPodAndAllowFail
Browse files Browse the repository at this point in the history
If the command we try to execute fails, log
the stdError along with error for better debugging.

Signed-off-by: Madhu Rajanna <[email protected]>
  • Loading branch information
Madhu-1 committed Oct 29, 2024
1 parent cc3febe commit 6acda2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func execCommandInPodAndAllowFail(f *framework.Framework, c, ns string, opt *met

stdOut, stdErr, err := execWithRetry(f, &podOpt)
if err != nil {
framework.Logf("command %s failed: %v", c, err)
framework.Logf("command %s failed: error:%v. stderror:%v", c, err, stdErr)
}

return stdOut, stdErr
Expand Down

0 comments on commit 6acda2b

Please sign in to comment.