tests/vm: Add workaround to consume console
commitff14ab0c13ee470f8f3fdcdea14104cef3d9fe2f
authorRobert Foley <robert.foley@linaro.org>
Wed, 1 Jul 2020 13:56:25 +0000 (1 14:56 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Sat, 11 Jul 2020 14:53:00 +0000 (11 15:53 +0100)
treee85c4bde446d35c3847089fba2469bfcfaa8f81c
parent0fc8f660c5c0d7b4513805f4798e97e4c371e486
tests/vm: Add workaround to consume console

This adds support to basevm.py so that we always
drain the console chars.  This makes use of
support added in an earlier commit that allows
QEMUMachine to use the ConsoleSocket.

This is a workaround we found was needed since
there is a known issue where QEMU will hang waiting
for console characters to be consumed.

We also added the option of logging the console to a file.
LOG_CONSOLE=1 will now log the output to a file.

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Peter Puhov <peter.puhov@linaro.org>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200601211421.1277-10-robert.foley@linaro.org>
Message-Id: <20200701135652.1366-14-alex.bennee@linaro.org>
tests/vm/Makefile.include
tests/vm/basevm.py