----- Original Message -----
> From: "Philippe Mathieu-Daudé" <f4...@amsat.org>
> To: qemu-devel@nongnu.org
> Cc: "Eduardo Habkost" <ehabk...@redhat.com>, "Caio Carrara"
> <ccarr...@redhat.com>, "Alistair Francis"
> <alist...@alistair23.me>, "Subbaraya Sundeep" <sundeep.l...@gmail.com>,
> qemu-...@nongnu.org, "Cleber Rosa"
> <cr...@redhat.com>, "Peter Maydell" <peter.mayd...@linaro.org>, "Philippe
> Mathieu-Daudé" <f4...@amsat.org>
> Sent: Monday, May 20, 2019 6:06:34 PM
> Subject: [PATCH 1/2] BootLinuxConsoleTest: Do not log empty lines
>
> Avoid to log empty lines in console debug logs.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
> ---
> tests/acceptance/boot_linux_console.py | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/acceptance/boot_linux_console.py
> b/tests/acceptance/boot_linux_console.py
> index d5c500ea30..f593f3858e 100644
> --- a/tests/acceptance/boot_linux_console.py
> +++ b/tests/acceptance/boot_linux_console.py
> @@ -37,8 +37,10 @@ class BootLinuxConsole(Test):
> console = self.vm.console_socket.makefile()
> console_logger = logging.getLogger('console')
> while True:
> - msg = console.readline()
> - console_logger.debug(msg.strip())
> + msg = console.readline().strip()
> + if not msg:
> + continue
> + console_logger.debug(msg)
> if success_message in msg:
> break
> if failure_message in msg:
> --
> 2.19.1
>
>
Reviewed-by: Cleber Rosa <cr...@redhat.com>