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_watchdog.robot b/ipmi/test_ipmi_watchdog.robot
index 9f0a02a..5c3dcf3 100644
--- a/ipmi/test_ipmi_watchdog.robot
+++ b/ipmi/test_ipmi_watchdog.robot
@@ -273,10 +273,12 @@
     IF  '${sel_event}' == 'Hard reset' or '${sel_event}' == 'Power cycle'
         # If timer expire action is 'Hard Reset' then the host/chassis immediately powering on after
         # timer expires. So, verify host is rebooting by expecting that host is unpingable.
-        Run Keyword If  '${sel_event}' == 'Power cycle'
-        ...  Wait Until Keyword Succeeds  1 min  10 sec  Verify Host Power State  ['off']
-        ...  ELSE
-        ...  Wait Until Keyword Succeeds  20 sec  5 sec  Is Host Unpingable  ${OS_HOST}
+        IF  '${sel_event}' == 'Power cycle'
+            Wait Until Keyword Succeeds  1 min  10 sec  Verify Host Power State  ['off']
+        ELSE
+            Wait Until Keyword Succeeds  20 sec  5 sec  Is Host Unpingable  ${OS_HOST}
+        END
+
         Wait Until Keyword Succeeds  5 min  30 sec  Verify Host Power State  ['on']
         Wait Until Keyword Succeeds  7 min  30 sec  OS Execute Command  uptime
     ELSE