[PATCH 3/3] scripts/runfvp: fix exception handling

Gyorgy Szing <[email protected]> Thu, 23 Apr 2026 17:37:21 +0200
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <[email protected]>
Returning from the finally block at the end of the start_fvp() function
is discarding exceptions. Since start_fvp() is near to the top off the
call tree, this hides uncaught exceptions thrown by most of the code,
which makes detecting and debugging issues hard.

This is resolved by removing the return statement from the finally
block, allowing exceptions to propagate normally.

Signed-off-by: Gyorgy Szing <[email protected]>
---
 scripts/runfvp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/runfvp b/scripts/runfvp
index 8e6fe655..10a8ad1c 100755
--- a/scripts/runfvp
+++ b/scripts/runfvp
@@ -86,8 +86,9 @@ def start_fvp(args, fvpconf, extra_args):
     except FileNotFoundError as e:
         logger.error(f"FVP executable not found ({e})")
     finally:
-        return fvp.stop()
+        rv=3Dfvp.stop()
=20
+    return rv
=20
 def runfvp(cli_args):
     args, extra_args =3D parse_args(cli_args)
--=20
2.43.0