[OE-core] [RFC PATCH 5/8] lib/oeqa/utils/qemurunner.py: class to handle qemu instance
Colin Walters
walters at verbum.org
Mon Aug 5 19:50:26 UTC 2013
On Fri, 2013-06-28 at 13:04 +0300, Stefan Stanacar wrote:
> + self.streampath = '/tmp/qemuconnection.%s' % os.getpid()
That's a security problem on shared machines.
> + bb.note("Reached login banner")
> + console.write("root\n")
> + (index, match, text) = console.expect([r"(root@[\w-]+:~#)"],10)
So I forget if I've mentioned this here, but what I do for the
gnome-ostree testing is at boot time, use a qcow2 overlay disk to write
a custom systemd service that exports the journal over a virtio-serial
channel. Then I look for specific MESSAGE_IDs in the journal.
This is extremely reliable, no parsing of log messages etc.
See:
https://rwmj.wordpress.com/2013/07/19/half-baked-ideas-ocr-vm-console-to-diagnose-state-and-errors/
More information about the Openembedded-core
mailing list