Message ID | 20211220171337.877288-3-ross.burton@arm.com |
---|---|
State | New |
Headers | show |
Series | [1/7] arm/oeqa/fvp: wrap bootlog output correctly | expand |
diff --git a/scripts/runfvp b/scripts/runfvp index 524de24d..877e80cb 100755 --- a/scripts/runfvp +++ b/scripts/runfvp @@ -179,7 +179,10 @@ async def start_fvp(cli, console_cb): finally: # If we get cancelled or throw an exception, kill the FVP logger.debug(f"Killing FVP PID {fvp_process.pid}") - fvp_process.terminate() + try: + fvp_process.terminate() + except ProcessLookupError: + pass if await fvp_process.wait() != 0: logger.info(f"{cli[0]} quit with code {fvp_process.returncode}")
Don't raise an exception if the FVP has quit before we get around to killing it. Signed-off-by: Ross Burton <ross.burton@arm.com> --- scripts/runfvp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)