1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-04-20 23:41:08 +00:00

runfvp: handle the fvp quitting before we kill it

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>
This commit is contained in:
Ross Burton
2021-12-20 17:13:33 +00:00
committed by Jon Mason
parent 12501b717f
commit 1512bf2aef

View File

@@ -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}")