Fix deprecated Exit For Loop builtin for IPMI
Changes:
- Exit For Loop If is deprecated since
Robot Framework version 5.*, use IF and BREAK instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: I25903fb2937325b5c78ba412b44c16d6e9e1558a
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/ipmi/test_ipmi_fru.robot b/ipmi/test_ipmi_fru.robot
index e10eb8b..7dd8ff3 100644
--- a/ipmi/test_ipmi_fru.robot
+++ b/ipmi/test_ipmi_fru.robot
@@ -86,10 +86,10 @@
Exit For Loop IF "${value}" == "${EMPTY}"
FOR ${ipmi_fru_component} IN ${ipmi_fru_component_obj}
FOR ${redfish_fru_component} IN ${redfish_fru_component_obj}
- Run Keyword If '${ipmi_fru_component['product_name']}' == '${redfish_fru_component['Name']}'
- ... Should Contain ${redfish_fru_component_obj['${value}']}
- ... ${ipmi_fru_component_obj['${key}']}
- ... msg=Comparison failed.
+ IF '${ipmi_fru_component['product_name']}' == '${redfish_fru_component['Name']}'
+ Should Contain ${redfish_fru_component_obj['${value}']}
+ ... ${ipmi_fru_component_obj['${key}']} msg=Comparison failed.
+ END
END
END
END