1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-04-20 11:29:54 +00:00

runfvp: don't hide output when using terminals

Only pass a console_cb if we're hooking up a console, so that the output
from the FVP is visible on the terminal.

Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton
2021-12-20 17:13:34 +00:00
committed by Jon Mason
parent 1512bf2aef
commit 1ccccbf603

View File

@@ -216,7 +216,8 @@ def runfvp(cli_args):
try:
# When we can assume Py3.7+, this can simply be asyncio.run()
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.gather(start_fvp(cli, console_cb=console_started)))
console_cb = expected_terminal and console_started or None
loop.run_until_complete(asyncio.gather(start_fvp(cli, console_cb=console_cb)))
except asyncio.CancelledError:
pass