mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-21 13:50:20 +00:00
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:
parent
98471b27fc
commit
00c7fb3136
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user