openbmc / openbmc-test-automation

Apache License 2.0
104 stars 92 forks source link

Ipmi.Test Ipmi Sel.Verify Empty SEL - does not first verify that there are one or more entries present #2156

Closed generatz closed 2 years ago

generatz commented 2 years ago

This test sends an ipmitool sel clear and then verifies that there are no SEL entries. But it does not first verify that there is at least one entry present. It needs to do this.

gkeishin commented 2 years ago

@AshwiniC777 Please look into it.

gkeishin commented 2 years ago

https://gerrit.openbmc-project.xyz/c/openbmc/openbmc-test-automation/+/52754

gkeishin commented 2 years ago
==============================================================================
Test Ipmi Sel :: Module to test IPMI SEL functionality.
==============================================================================
Verify Empty SEL :: Verify IPMI sel clear clears the SEL(s).          #(CDT) 2022/04/08 08:59:41.335657 -    0.718039 - Issuing: busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging     xyz.openbmc_project.Logging.Create Create ssa{ss} org.open_power.Logging.Error.TestError1     xyz.openbmc_project.Logging.Entry.Level.Error 0
.#(CDT) 2022/04/08 08:59:42.761024 -    0.018824 - Issuing: ipmitool -I lanplus -C 17 -N 3 -p 623 -U root -P xxxxxxxx -H xx.xx.xx.xx sel elist last 1
.   1 | 04/08/2022 | 14:00:13 | System Event #0x01 | Undetermined system hardware failure | Asserted
..#(CDT) 2022/04/08 08:59:50.315956 -    7.554932 - Issuing: ipmitool -I lanplus -C 17 -N 3 -p 623 -U root -P xxxxxxxx -H xx.xx.xx.xx sel clear
..#(CDT) 2022/04/08 08:59:55.686636 -    5.370680 - Issuing: ipmitool -I lanplus -C 17 -N 3 -p 623 -U root -P xxxxxxxx -H xx.xx.xx.xx sel list
Verify Empty SEL :: Verify IPMI sel clear clears the SEL(s).          | PASS |
------------------------------------------------------------------------------
Test Ipmi Sel :: Module to test IPMI SEL functionality.               | PASS |
1 test, 1 passed, 0 failed
==============================================================================