Acceptance tests: add Linux kernel boot and console checking test
authorCleber Rosa <crosa@redhat.com>
Wed, 30 May 2018 18:41:56 +0000 (14:41 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Jun 2018 19:10:11 +0000 (16:10 -0300)
commitc1cc73f407b890c4e7ab5bf520c0637e0364e92a
tree659637e88580467e68dad2f898eb71fd30f3847a
parent22dea9db2baf72a79782c748c57e2d87b06234d5
Acceptance tests: add Linux kernel boot and console checking test

This test boots a Linux kernel, and checks that the given command
line was effective in two ways:

 * It makes the kernel use the set "console device" as a console
 * The kernel records the command line as expected in the console

Given that way too many error conditions may occur, and detecting the
kernel boot progress status may not be trivial, this test relies on a
timeout to handle unexpected situations.  Also, it's *not* tagged as a
quick test for obvious reasons.

It may be useful, while interactively running/debugging this test, or
tests similar to this one, to show some of the logging channels.
Example:

 $ avocado --show=QMP,console run boot_linux_console.py

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20180530184156.15634-6-crosa@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/acceptance/boot_linux_console.py [new file with mode: 0644]