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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user