Fix for depreciated Continue For Loop If keyword
Changes:
- Continue For Loop If is deprecated since
Robot Framework version 5.*, use IF and CONTINUE instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: I63bba499b2c82394bb3fe2f74405dbacd09a6d0c
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/redfish/update_service/test_bmc_image_switch.robot b/redfish/update_service/test_bmc_image_switch.robot
index 787d645..80d18fc 100755
--- a/redfish/update_service/test_bmc_image_switch.robot
+++ b/redfish/update_service/test_bmc_image_switch.robot
@@ -55,7 +55,7 @@
Log To Console LOOP_COUNT:${count} execution.
Redfish BMC Switch Firmware Side
- Continue For Loop If '${power_on}' == 'NO'
+ IF '${power_on}' == 'NO' CONTINUE
Log To Console Power on requested, issuing power on.
Redfish Power On
@@ -95,7 +95,7 @@
# Get the backup firmware version for reference.
FOR ${id} IN @{fw_inv_dict.keys()}
- Continue For Loop If '${fw_inv_dict['${id}']['functional']}' == 'True'
+ IF '${fw_inv_dict['${id}']['functional']}' == 'True' CONTINUE
# Find the non functional id and fetch the version.
${image_version}= Set Variable ${fw_inv_dict['${id}']['version']}
END