mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
e2e: fix panic when checking error
fix panic during error handling Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
607c654263
commit
09df2c6091
@ -215,11 +215,14 @@ func validateOmapCount(f *framework.Framework, count int, driver, pool, mode str
|
||||
filterLessCmds := []string{cmds.radosLsCmd, cmds.radosLsKeysCmd}
|
||||
for i, cmd := range filterCmds {
|
||||
stdOut, stdErr, err := execCommandInToolBoxPod(f, cmd, rookNamespace)
|
||||
if err != nil || stdErr != "" {
|
||||
if err != nil {
|
||||
if !strings.Contains(err.Error(), exitOneErr) {
|
||||
e2elog.Failf("failed to execute rados command '%s' : err=%v stdErr=%s", cmd, err, stdErr)
|
||||
}
|
||||
}
|
||||
if stdErr != "" {
|
||||
e2elog.Failf("failed to execute rados command '%s' : stdErr=%s", cmd, stdErr)
|
||||
}
|
||||
err = compareStdoutWithCount(stdOut, count)
|
||||
if err == nil {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user