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 <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Oct 28, 2024
1 parent f28ba51 commit 86adb7e
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 86adb7e

Please sign in to comment.