Skip to content

Commit

Permalink
scripts/runfvp: exit code should be the FVP exit code
Browse files Browse the repository at this point in the history
The __main__ body used the return value of runfvp() as the exit code,
but this was never set.

Signed-off-by: Ross Burton <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
  • Loading branch information
rossburton authored and jonmason committed Nov 7, 2023
1 parent 98e85b3 commit 6fa5992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/runfvp
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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__":
Expand Down

0 comments on commit 6fa5992

Please sign in to comment.