Added fix for BMC dump CT issues

Changes:
       -  Added wait keyword for bmc dump deletion to complete successfully.

Tested:
       - Ran the affected testcases from sandbox successfully.

Change-Id: Ib3347d46a61c92e0f31f26453921a08c2b42de3a
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/redfish/managers/test_bmc_dumps.robot b/redfish/managers/test_bmc_dumps.robot
index c570a8c..e25e314 100644
--- a/redfish/managers/test_bmc_dumps.robot
+++ b/redfish/managers/test_bmc_dumps.robot
@@ -30,7 +30,7 @@
 
     Redfish Power Off  stack_mode=skip
     ${dump_id}=  Create User Initiated BMC Dump Via Redfish
-    Redfish Delete BMC Dump  ${dump_id}
+    Wait Until Keyword Succeeds  15 sec  5 sec  Redfish Delete BMC Dump  ${dump_id}
     Run Keyword And Expect Error  ValueError: *  Redfish Delete BMC Dump  ${dump_id}
 
 
@@ -186,7 +186,7 @@
 
     Redfish Power Off  stack_mode=skip
     ${dump_id}=  Create User Initiated BMC Dump Via Redfish
-    Redfish Delete BMC Dump  ${dump_id}
+    Wait Until Keyword Succeeds  15 sec  5 sec  Redfish Delete BMC Dump  ${dump_id}
 
     ${dump_entries}=  Get BMC Dump Entries
     Should Be Empty  ${dump_entries}
@@ -230,7 +230,7 @@
     ${dump_id1}=  Create User Initiated BMC Dump Via Redfish
     ${dump_id2}=  Create User Initiated BMC Dump Via Redfish
 
-    Redfish Delete BMC Dump  ${dump_id1}
+    Wait Until Keyword Succeeds  15 sec  5 sec  Redfish Delete BMC Dump  ${dump_id1}
 
     ${dump_entries}=  Get BMC Dump Entries
     Length Should Be  ${dump_entries}  1
@@ -244,7 +244,7 @@
     Redfish Power Off  stack_mode=skip
     FOR  ${INDEX}  IN  1  10
       ${dump_id}=  Create User Initiated BMC Dump Via Redfish
-      Redfish Delete BMC Dump  ${dump_id}
+      Wait Until Keyword Succeeds  15 sec  5 sec  Redfish Delete BMC Dump  ${dump_id}
     END