mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
kunit: tool: remove dead parse_crash_in_log() logic
This logic depends on the kernel logging a message containing 'kunit test case crashed', but there is no corresponding logic to do so. This is likely a relic of the revision process KUnit initially went through when being upstreamed. Delete it given 1) it's been missing for years and likely won't get implemented 2) the parser has been moving to be a more general KTAP parser, kunit-only magic like this isn't how we'd want to implement it. Signed-off-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
committed by
Shuah Khan
parent
9660209d94
commit
33d4a933e9
@@ -475,26 +475,6 @@ def parse_diagnostic(lines: LineStream) -> List[str]:
|
||||
log.append(lines.pop())
|
||||
return log
|
||||
|
||||
DIAGNOSTIC_CRASH_MESSAGE = re.compile(r'^# .*?: kunit test case crashed!$')
|
||||
|
||||
def parse_crash_in_log(test: Test) -> bool:
|
||||
"""
|
||||
Iterate through the lines of the log to parse for crash message.
|
||||
If crash message found, set status to crashed and return True.
|
||||
Otherwise return False.
|
||||
|
||||
Parameters:
|
||||
test - Test object for current test being parsed
|
||||
|
||||
Return:
|
||||
True if crash message found in log
|
||||
"""
|
||||
for line in test.log:
|
||||
if DIAGNOSTIC_CRASH_MESSAGE.match(line):
|
||||
test.status = TestStatus.TEST_CRASHED
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
# Printing helper methods:
|
||||
|
||||
@@ -682,7 +662,6 @@ def bubble_up_test_results(test: Test) -> None:
|
||||
Parameters:
|
||||
test - Test object for current test being parsed
|
||||
"""
|
||||
parse_crash_in_log(test)
|
||||
subtests = test.subtests
|
||||
counts = test.counts
|
||||
status = test.status
|
||||
|
Reference in New Issue
Block a user