Skip to content

Commit

Permalink
forcing a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
umfranci committed Feb 13, 2025
1 parent 6a350ab commit 82f3217
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisa/testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ def __run_case(
case_result.set_status(TestStatus.PASSED, "")
nodes = case_result.environment.nodes
for node in nodes.list():
log.debug(f"Assert kernel Error: {node.assert_kernel_error}")
if node.assert_kernel_error:
self.__node_kernel_error_check(node, log)
except Exception as identifier:
Expand All @@ -867,7 +868,8 @@ def __run_case(

def __node_kernel_error_check(self, node: schema.NodeSpace, log: Logger) -> None:
dmesg_check_result = node.exec_check_dmesg_oops()
if dmesg_check_result:
log.debug(f"dmesg_check_result: {dmesg_check_result}")
if not dmesg_check_result:
raise LisaException(f"failed. Kernel Errors found in the DMesg logs after test case execution. Please check the same!")


Expand Down

0 comments on commit 82f3217

Please sign in to comment.