From 0e6797527262f504c3743a9b88832c9c9db9e569 Mon Sep 17 00:00:00 2001 From: Maciej Torhan Date: Thu, 22 Feb 2024 15:40:21 +0100 Subject: [PATCH] [#55429] runtimes: renode: Add Renode logs flush before read Signed-off-by: Maciej Torhan --- kenning/runtimes/renode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kenning/runtimes/renode.py b/kenning/runtimes/renode.py index ba8bcaef..75b50835 100644 --- a/kenning/runtimes/renode.py +++ b/kenning/runtimes/renode.py @@ -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()