Skip to content

Commit ecd3579

Browse files
bhcopelandnuclearcat
authored andcommitted
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 <ben.copeland@linaro.org>
1 parent 8b40e24 commit ecd3579

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernelci/runtime/lava.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def get_text(self):
6666
output += msg + '\n'
6767
return output
6868

69+
def get_data(self):
70+
"""Get the raw log data as a list of dicts in LAVA output.yaml format"""
71+
return [{'dt': dt, 'lvl': lvl, 'msg': msg} for dt, lvl, msg in self._raw_log]
72+
6973

7074
class Callback:
7175
"""LAVA callback handler"""

0 commit comments

Comments
 (0)