From 55453024ee5cf5bcf396551e7de10c77d0cc3390 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 26 Apr 2022 13:33:54 +0100 Subject: [PATCH] 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 Signed-off-by: Jon Mason --- scripts/runfvp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/runfvp b/scripts/runfvp index 877e80cb..77668248 100755 --- a/scripts/runfvp +++ b/scripts/runfvp @@ -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