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_sensor.robot b/ipmi/test_ipmi_sensor.robot
index 1bf219c..f5e25f9 100644
--- a/ipmi/test_ipmi_sensor.robot
+++ b/ipmi/test_ipmi_sensor.robot
@@ -391,12 +391,13 @@
${sensor_name}= Set Variable ${sensor_list[0]}
${sensor_id}= Get Sensor Id For Sensor ${sensor_name}
- Run Keyword If '${status}' == 'Absent'
- ... Run IPMI Command
- ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x00 0x00 0x80 0x00 0x00 0x20 0x00
- ... ELSE IF '${status}' == 'Enabled'
- ... Run IPMI Command
- ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x80 0x00 0x00 0x00 0x00 0x20 0x00
+ IF '${status}' == 'Absent'
+ Run IPMI Command
+ ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x00 0x00 0x80 0x00 0x00 0x20 0x00
+ ELSE IF '${status}' == 'Enabled'
+ Run IPMI Command
+ ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x80 0x00 0x00 0x00 0x00 0x20 0x00
+ END
# Redfish cpu components have "-" instead of "_" (e.g.: dcm0-cpu0).
${cpu_name}= Replace String ${sensor_name} _ -