e2e: log stderror in execCommandInPodAndAllowFail

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>
This commit is contained in:
Madhu Rajanna 2024-10-28 12:56:36 +01:00 committed by mergify[bot]
parent 98471b27fc
commit 00c7fb3136

View File

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