Acceptance tests: refactor wait_for_console_pattern
authorCleber Rosa <crosa@redhat.com>
Mon, 28 Oct 2019 23:04:04 +0000 (19:04 -0400)
committerCleber Rosa <crosa@redhat.com>
Mon, 28 Oct 2019 23:04:04 +0000 (19:04 -0400)
commit77bcd2487e527334a65ca5f263ccfe62f57a7bd5
tree950e18f551619dc6ec6bbc6b73496a1f1cc3b1d5
parent085809670201c6d3a33e37dc753a23115ba8ceb3
Acceptance tests: refactor wait_for_console_pattern

The same utility method is already present in two different test
files, so let's consolidate it into a single utility function.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20190916164011.7653-1-crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: failure_message is optional]
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <20191028073441.6448-3-philmd@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
tests/acceptance/avocado_qemu/__init__.py
tests/acceptance/boot_linux_console.py
tests/acceptance/linux_ssh_mips_malta.py