Skip to content

Commit

Permalink
[#55429] runtimes: renode: Add Renode logs flush before read
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Torhan <mtorhan@antmicro.com>
  • Loading branch information
m-torhan authored and glatosinski committed Feb 23, 2024
1 parent 2ce6751 commit 0e67975
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kenning/runtimes/renode.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ def handle_renode_logs(self):
Captures log from UART and Renode console.
"""
# capture Renode console logs
from Antmicro.Renode.Logging import Logger

Logger.Flush()

if not self.renode_log_file.closed and self.renode_log_file.readable():
while True:
logs = self.renode_log_file.read()
Expand Down

0 comments on commit 0e67975

Please sign in to comment.