Code update fix

PrepareForUpdate triggers a warm reset which reboots the BMC in 3
seconds. We hit the window here where the REST call to check the
flash status happens to be when the BMC boot is already in progress.
This change checks whether the boot status is updated correctly.

This situation could have been a failure in many code updates and
doesn't need to be here since if PrepareForUpdate failed we would
have aborted the code update process anyway. Removing it for good.

Resolves openbmc/openbmc#1301

Change-Id: I2ab7e8a1597226f2a30716ac172c68d3abb0e04b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/code_update/code_update_utils.robot b/extended/code_update/code_update_utils.robot
index d517f78..dac252b 100644
--- a/extended/code_update/code_update_utils.robot
+++ b/extended/code_update/code_update_utils.robot
@@ -48,8 +48,9 @@
     ${resp}=    openbmc post request    ${BMC_PREP_METHOD}   data=${data}
     should be equal as strings   ${resp.status_code}   ${HTTP_OK}
 
-    ${data}=      Read Properties     ${BMC_UPD_ATTR}
-    should contain    ${data['status']}   Switch to update mode in progress
+    # Update method will reset the BMC, adding delay for reboot to
+    # come into force.
+    Sleep  10s
 
 
 SCP Tar Image File to BMC