diff mbox series

[2/3] scripts/runfvp: exit code should be the FVP exit code

Message ID 20231106155914.2552807-2-ross.burton@arm.com
State New
Headers show
Series [1/3] arm/lib/fvp/runner: don't pass '' as cwd | expand

Commit Message

Ross Burton Nov. 6, 2023, 3:59 p.m. UTC
From: Ross Burton <ross.burton@arm.com>

The __main__ body used the return value of runfvp() as the exit code,
but this was never set.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 scripts/runfvp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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__":