Automation enhancement on printing the loop count
Change-Id: Ic8e4b668e98d99cb4f34e9f85323b1f4398277b8
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/redfish/extended/redfish_bmc_code_update.robot b/redfish/extended/redfish_bmc_code_update.robot
index 5362200..e507a47 100644
--- a/redfish/extended/redfish_bmc_code_update.robot
+++ b/redfish/extended/redfish_bmc_code_update.robot
@@ -84,8 +84,9 @@
# update_loop_count This value is used to run the firmware update in loop.
${before_image_state}= Get BMC Functional Firmware
+ ${temp_update_loop_count}= Evaluate ${update_loop_count} + 1
- FOR ${count} IN RANGE ${update_loop_count}
+ FOR ${count} IN RANGE 1 ${temp_update_loop_count}
Print Timen **************************************
Print Timen * The Current Loop Count is ${count} of ${update_loop_count} *
Print Timen **************************************