From 6fa5992471941b7cd55396b3a454ae85b9c4253a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 6 Nov 2023 15:59:13 +0000 Subject: [PATCH] scripts/runfvp: exit code should be the FVP exit code The __main__ body used the return value of runfvp() as the exit code, but this was never set. Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- scripts/runfvp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runfvp b/scripts/runfvp index 0ca3a1b5..135cf04d 100755 --- a/scripts/runfvp +++ b/scripts/runfvp @@ -79,7 +79,7 @@ def start_fvp(args, fvpconf, extra_args): print(line.strip().decode(errors='ignore')) finally: - fvp.stop() + return fvp.stop() def runfvp(cli_args): @@ -88,7 +88,7 @@ def runfvp(cli_args): config_file = args.config else: config_file = conffile.find(args.config) - start_fvp(args, config_file, extra_args) + return start_fvp(args, config_file, extra_args) if __name__ == "__main__":