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/managers/test_certificate.robot b/redfish/managers/test_certificate.robot
index 7d00362..20d6782 100644
--- a/redfish/managers/test_certificate.robot
+++ b/redfish/managers/test_certificate.robot
@@ -243,8 +243,7 @@
${match}= Set Variable ${False}
FOR ${Certificates_dict} IN @{Links['Certificates']}
- Continue For Loop If
- ... "${Certificates_dict['@odata.id']}}" != "${match_cert}}"
+ IF "${Certificates_dict['@odata.id']}}" != "${match_cert}}" CONTINUE
${match}= Set Variable ${True}
END
diff --git a/redfish/managers/test_managers_bmc.robot b/redfish/managers/test_managers_bmc.robot
index 9cd1bdd..d55f284 100644
--- a/redfish/managers/test_managers_bmc.robot
+++ b/redfish/managers/test_managers_bmc.robot
@@ -79,8 +79,7 @@
Log Dictionary ${active_channel_config["${channel_number}"]}
# Skip channel if is_valid is false for the channel number
- Continue For Loop If
- ... ${active_channel_config["${channel_number}"]["is_valid"]}==${FALSE}
+ IF ${active_channel_config["${channel_number}"]["is_valid"]}==${FALSE} CONTINUE
# Get ethernet valid paths in redfish.
# Example: ['/redfish/v1/Managers/${MANAGER_ID}/EthernetInterfaces']