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_sol.robot b/ipmi/test_ipmi_sol.robot
index b602fc4..3f3a7d9 100644
--- a/ipmi/test_ipmi_sol.robot
+++ b/ipmi/test_ipmi_sol.robot
@@ -144,16 +144,17 @@
${status}= Run Keyword And Return Status Wait Until Keyword Succeeds 10 mins 15 secs
... Check IPMI SOL Output Content ${SOL_BIOS_OUTPUT}
- Run Keyword If '${status}' == 'False'
- ... Run Keywords IPMI Power Off AND FAIL msg=BIOS not loaded.
+ IF '${status}' == 'False'
+ IPMI Power Off
+ FAIL msg=BIOS not loaded.
+ END
# SOL_LOGIN_OUTPUT - SOL output login prompt
# Once host reboot completes, SOL console may take maximum of 15 minutes to get the login prompt.
${status}= Run Keyword And Return Status Wait Until Keyword Succeeds 15 mins 15 secs
... Check IPMI SOL Output Content ${SOL_LOGIN_OUTPUT}
- Run Keyword If '${status}' == 'False'
- ... IPMI Power Off
+ IF '${status}' == 'False' IPMI Power Off
Verify Deactivate Non Existing SOL
@@ -361,16 +362,17 @@
${status}= Run Keyword And Return Status Wait Until Keyword Succeeds 10 mins 15 secs
... Check IPMI SOL Output Content ${SOL_BIOS_OUTPUT}
- Run Keyword If '${status}' == 'False'
- ... Run Keywords IPMI Power Off AND FAIL msg=BIOS not loaded.
+ IF '${status}' == 'False'
+ IPMI Power Off
+ FAIL msg=BIOS not loaded.
+ END
# SOL_LOGIN_OUTPUT - SOL output login prompt
# Once host reboot completes, SOL console may take maximum of 15 minutes to get the login prompt.
${status}= Run Keyword And Return Status Wait Until Keyword Succeeds 15 mins 15 secs
... Check IPMI SOL Output Content ${SOL_LOGIN_OUTPUT}
- Run Keyword If '${status}' == 'False'
- ... IPMI Power Off
+ IF '${status}' == 'False' IPMI Power Off
Get SOL Setting