diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2019-05-21 00:06:34 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2019-06-11 14:13:09 -0300 |
commit | da77bc919d83ebacc952bd8fd5cde4b2fe3a52ba (patch) | |
tree | e344d1c64a23bcb925d1a3116cc581abf6a29929 | |
parent | 6c1c4c33b58b003a562de58cb1731b29614a9446 (diff) |
BootLinuxConsoleTest: Do not log empty lines
Avoid to log empty lines in console debug logs.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20190520220635.10961-2-f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Acked-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r-- | tests/acceptance/boot_linux_console.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index 6aa084e049..e86e66900a 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: |