From 735a34f49735dfb695b3f59099ff348ac6ded3dc Mon Sep 17 00:00:00 2001 From: Ben Copeland Date: Thu, 18 Dec 2025 12:56:24 +0000 Subject: [PATCH] runtime/lava: Add get_data() method to LogParser Add a method to return the parsed log data as a list of dicts in LAVA output.yaml format. Signed-off-by: Ben Copeland --- kernelci/runtime/lava.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernelci/runtime/lava.py b/kernelci/runtime/lava.py index 7f7755ee06..547786eb77 100644 --- a/kernelci/runtime/lava.py +++ b/kernelci/runtime/lava.py @@ -66,6 +66,10 @@ def get_text(self): output += msg + '\n' return output + def get_data(self): + """Get the raw log data as a list of dicts in LAVA output.yaml format""" + return [{'dt': dt, 'lvl': lvl, 'msg': msg} for dt, lvl, msg in self._raw_log] + class Callback: """LAVA callback handler"""