Fix deprecated keyword used in openpower suite
Changes:
- Run KeyWord If is deprecated since Robot
Framework version 5.*, use 'IF' instead
- Keyword name Check If BMC is Up does not
follow case convention
Tested:
- Tested the scripts on BMC environment
Change-Id: I5effd40ec81e8840fe9aae792929244f33c1bc8b
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/openpower/ipmi/test_ipmi_sdr.robot b/openpower/ipmi/test_ipmi_sdr.robot
index 8fb12fa..da9a2e3 100755
--- a/openpower/ipmi/test_ipmi_sdr.robot
+++ b/openpower/ipmi/test_ipmi_sdr.robot
@@ -26,11 +26,11 @@
${state_ipmi}= Get SDR Presence Via IPMI turbo_allowed${SPACE}
- Run Keyword If '${state_ipmi}' == 'Disabled'
- ... Should Be True ${state_rest} == ${0}
- ... ELSE IF '${state_ipmi}' == 'State Asserted'
- ... Should Be True ${state_rest} == ${1}
-
+ IF '${state_ipmi}' == 'Disabled'
+ Should Be True ${state_rest} == ${0}
+ ELSE IF '${state_ipmi}' == 'State Asserted'
+ Should Be True ${state_rest} == ${1}
+ END
*** Keywords ***