KVM test: Create a verify_kernel_crash() VM method
commit7c9338cb5c35e8147ba789143eacb9a4259e863b
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Thu, 24 Mar 2011 16:09:11 +0000 (24 16:09 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Thu, 24 Mar 2011 16:09:11 +0000 (24 16:09 +0000)
treeb607a680a9a4dc11acfb386bbab7675cb04e80cd
parente5ffdfdf69a3644ac7b462c7ea962ded6f7307f7
KVM test: Create a verify_kernel_crash() VM method

A method to verify guest kernel panics can be very
useful for a number of tests. Adapted from a function
present on virtio_console test, create VM.verify_kernel_crash()
and use it on unattended_install.

Changes from v1:
 * According to mgoldish's comments, instead of using
read_nonblocking() and read_until_last_line_matches(),
use simply get_output(), and only throw an exception
at the time we have a full trace.

Changes from v3:
 * Reimplementing the method on a less moronic fashion.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5288 592f7852-d20e-0410-864c-8624ca9c26a4
client/tests/kvm/kvm_vm.py