Update IPMI robot test code with latest directives
Changes:
- Run KeyWord If is deprecated since Robot
Framework version 5.*, use 'IF' instead
- Exit For Loop If is deprecated since Robot
Framework version 5.*, use
IF '${var}' == 'EXIT' BREAK
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: If2fd8636b388250fc4dbc4576169f7250983c4ef
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ipmi/test_ipmi_fru.robot b/ipmi/test_ipmi_fru.robot
index 7dd8ff3..fe55d1a 100644
--- a/ipmi/test_ipmi_fru.robot
+++ b/ipmi/test_ipmi_fru.robot
@@ -83,7 +83,7 @@
${key_map}= Get Dictionary Items ${ipmi_redfish_fru_field_map}
FOR ${key} ${value} IN @{key_map}
- Exit For Loop IF "${value}" == "${EMPTY}"
+ IF "${value}" == "${EMPTY}" BREAK
FOR ${ipmi_fru_component} IN ${ipmi_fru_component_obj}
FOR ${redfish_fru_component} IN ${redfish_fru_component_obj}
IF '${ipmi_fru_component['product_name']}' == '${redfish_fru_component['Name']}'