code-update: Adds wait retry to image upload failure
Change-Id: Iadfedeb84be4de8c3cd0cbaa63bb6e0948d8e54e
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index 89c00f0..0e5308e 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -170,7 +170,9 @@
${image_version}= Get Version Tar ${image_file_path}
${image_data}= OperatingSystem.Get Binary File ${image_file_path}
- Upload Image To BMC /upload/image data=${image_data}
+
+ Wait Until Keyword Succeeds 3 times 60 sec
+ ... Upload Image To BMC /upload/image data=${image_data}
${ret} ${version_id}= Verify Image Upload ${image_version}
Should Be True ${ret}