Automation fix in ipmi/test_ipmi_sel.robot
Changes:
- Added a check to verify the information error log entry
after issuing the IPMI SEL clear command.
Tested:
- Ran and tested on BMC Environment
Change-Id: I23e772defa5314ee16f61fa22268301b24b5617e
Signed-off-by: Vidya-Kalasappanavar <Vidya.Kalasappanavar@ibm.com>
diff --git a/ipmi/test_ipmi_sel.robot b/ipmi/test_ipmi_sel.robot
index 999b184..3207cf9 100644
--- a/ipmi/test_ipmi_sel.robot
+++ b/ipmi/test_ipmi_sel.robot
@@ -52,10 +52,18 @@
# Send SEL clear command and verify if it really clears up the SEL entry.
Run IPMI Standard Command sel clear
+
+ # Added a delay for IPMI SEL to clear completely.
Sleep 5s
${resp}= Run IPMI Standard Command sel list
- Should Contain ${resp} SEL has no entries case_insensitive=True
+
+ # After executing the IPMI SEL clear command, there will be an informational
+ # SEL entry in the IPMI SEL. Therefore, checking if the IPMI SEL count is 1
+ # after clearing SEL.
+
+ ${sel_count}= Get Line Count ${resp}
+ Should Be Equal As Strings ${sel_count} 1
Verify Add SEL Entry