tests/acceptance: Fix wait_for_console_pattern() hangs
commitffc1fe7894f7704ed6af0746715099b098a61463
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 28 Oct 2019 23:04:04 +0000 (28 19:04 -0400)
committerCleber Rosa <crosa@redhat.com>
Mon, 28 Oct 2019 23:04:04 +0000 (28 19:04 -0400)
tree7d7c0a1e412d76f5b638716f7114335a68808439
parent77bcd2487e527334a65ca5f263ccfe62f57a7bd5
tests/acceptance: Fix wait_for_console_pattern() hangs

Because of a possible deadlock (QEMU waiting for the socket to
become writable) let's close the console socket as soon as we
stop to use it.

Suggested-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191028073441.6448-4-philmd@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
[Cleber: corrected small typo in commit message]
Signed-off-by: Cleber Rosa <crosa@redhat.com>
tests/acceptance/avocado_qemu/__init__.py