mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-07 04:58:57 +00:00
scripts/runfvp: fix exception handling
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 <gyorgy.szing@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
+2
-1
@@ -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=fvp.stop()
|
||||
|
||||
return rv
|
||||
|
||||
def runfvp(cli_args):
|
||||
args, extra_args = parse_args(cli_args)
|
||||
|
||||
Reference in New Issue
Block a user