IPMI test suite with latest directives

Changes:
   - Run KeyWord If is deprecated since Robot
     Framework version 5.*, use 'IF' instead

Tested:
   - Checked using robot dry-run to make sure the
     syntax is not broken

Change-Id: Id248062c860ff209875d8f57315f572d9321f783
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/ipmi/test_ipmi_cipher.robot b/ipmi/test_ipmi_cipher.robot
index 4e9497a..c0e71be 100644
--- a/ipmi/test_ipmi_cipher.robot
+++ b/ipmi/test_ipmi_cipher.robot
@@ -196,7 +196,7 @@
     ${resp}=  Strip String  ${resp}
 
     # channel 14 represents current channel in which we send request.
-    ${channel_num}=  Run Keyword If  '${channel_num}' == '14'
+    ${channel_num}=  Set Variable If  '${channel_num}' == '14'
     ...  Convert To Hex  ${CHANNEL_NUMBER}  length=2
     ...  ELSE
     ...  Convert To Hex  ${channel_num}  length=2
@@ -225,7 +225,7 @@
    # Description of argument(s):
    # byte_length   extra or less.
 
-   ${req_cmd}=  Run Keyword If  '${byte_length}' == 'less'
+   ${req_cmd}=  Set Variable If  '${byte_length}' == 'less'
    ...  Catenate  ${IPMI_RAW_CMD['Cipher Suite']['get'][0]} ${CHANNEL_NUMBER} 00
    ...  ELSE
    ...  Catenate  ${IPMI_RAW_CMD['Cipher Suite']['get'][0]} ${CHANNEL_NUMBER} 00 00 01