Skip to content

Commit

Permalink
dmesg error level check for lpm test
Browse files Browse the repository at this point in the history
checking the error levels up to level 4 for LPM tests
than the default level 5
        1 - emerg
        2 - emerg,alert
        3 - emerg,alert,crit
        4 - emerg,alert,crit,err
        5 - emerg,alert,crit,err,warn

Signed-off-by: Vaishnavi Bhat <[email protected]>
  • Loading branch information
vaishnavibhat committed Feb 22, 2024
1 parent 242747c commit b1aefaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/net/virt-net/lpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def check_dmesg_error(self):
error = ['uevent: failed to send synthetic uevent', 'failed to send uevent', 'registration failed']
self.log.info("Gathering kernel errors if any")
try:
dmesg.collect_errors_by_level(skip_errors=error)
dmesg.collect_errors_by_level(level_check=4, skip_errors=error)
except Exception as exc:
self.log.info(exc)
self.fail("test failed,check dmesg log in debug log")
Expand Down

0 comments on commit b1aefaa

Please sign in to comment.