IPMI: Modified Verify Disabling IPMI Via OOB IPMI testcase in test_ipmi_disable.robot
Changes:
- Modified Verify Disabling IPMI Via OOB IPMI testcase to handle empty and successfull response
Tested:
- Ran ipmi/test_ipmi_disable.robot
Change-Id: Ib0434179a62dcdda2448b630e28a83fd41128749
Signed-off-by: Ishwarya Mathi M <ishwaryamm@ami.com>
diff --git a/ipmi/test_ipmi_disable.robot b/ipmi/test_ipmi_disable.robot
index c97573e..d19073c 100644
--- a/ipmi/test_ipmi_disable.robot
+++ b/ipmi/test_ipmi_disable.robot
@@ -36,8 +36,8 @@
... AND Run Inband IPMI Standard Command lan set ${CHANNEL_NUMBER} access on
# Disable IPMI via OOB IPMI and verify
- Run Keyword and Expect Error *IPMI response is NULL*
- ... Run IPMI Standard Command lan set ${CHANNEL_NUMBER} access off
+ ${resp}= Run Keyword and Ignore Error Run External IPMI Standard Command lan set ${CHANNEL_NUMBER} access off
+ Should Contain any ${resp} ${EMPTY} Set Channel Access for channel ${CHANNEL_NUMBER} was successful.
Run Keyword and Expect Error *Unable to establish IPMI*
... Run External IPMI Standard Command lan print ${CHANNEL_NUMBER}