From b1aefaa5db83cef2250acc948400751c812a59cc Mon Sep 17 00:00:00 2001 From: Vaishnavi Bhat Date: Thu, 22 Feb 2024 10:25:40 +0530 Subject: [PATCH] dmesg error level check for lpm test 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 --- io/net/virt-net/lpm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/net/virt-net/lpm.py b/io/net/virt-net/lpm.py index 8958cffdc..5b8bffe6d 100644 --- a/io/net/virt-net/lpm.py +++ b/io/net/virt-net/lpm.py @@ -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")