1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-07-16 03:47:19 +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>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2022-04-26 13:33:53 +01:00
committed by Jon Mason
parent cc1c99f537
commit c72527d6a5
+4 -1
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}")