All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stanacar, StefanX" <stefanx.stanacar@intel.com>
To: Colin Walters <walters@verbum.org>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [RFC PATCH 5/8] lib/oeqa/utils/qemurunner.py: class to handle qemu instance
Date: Thu, 29 Aug 2013 11:18:46 +0000	[thread overview]
Message-ID: <1377775123.9984.7.camel@firebird.rb.intel.com> (raw)
In-Reply-To: <1375732226.4750.25.camel@localhost>

Hi Colin,

On Mon, 2013-08-05 at 21:50 +0200, Colin Walters wrote:
> 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.

I know this is a late reply, sorry, I missed the email back then.
This has been changed since then to something else (but the reasons were
different)
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0ba78c1162bb125850a0ee504ca6fbe5bf21247f
That's a tcp socket localhost only now, random high port (calls bind
with 127.0.0.1, 0 so the os chooses the port).


> 
> > +                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.
> 

That sounds really cool, nice job! 
I might be wrong but doesn't that require virtio support in the target
kernel (which is something we can't expect to have)?

Cheers,
Stefan

> See:
> https://rwmj.wordpress.com/2013/07/19/half-baked-ideas-ocr-vm-console-to-diagnose-state-and-errors/
> 
> 


  reply	other threads:[~2013-08-29 11:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28 10:04 [RFC PATCH 0/8] Proposed implementation of a new runtime tests framework Stefan Stanacar
2013-06-28 10:04 ` [RFC PATCH 1/8] classes/testimage.bbclass: new class for image tests Stefan Stanacar
2013-06-28 10:04 ` [RFC PATCH 2/8] lib/oeqa/oetest.py: base module for all runtime unittests Stefan Stanacar
2013-06-28 10:04 ` [RFC PATCH 3/8] lib/oeqa/utils/sshcontrol.py: helper module for running remote commands Stefan Stanacar
2013-06-28 10:04 ` [RFC PATCH 4/8] lib/oeqa/utils/oetelnetlib.py: override Telnet class to use Unix domain sockets Stefan Stanacar
2013-07-03 22:38   ` Paul Eggleton
2013-06-28 10:04 ` [RFC PATCH 5/8] lib/oeqa/utils/qemurunner.py: class to handle qemu instance Stefan Stanacar
2013-08-05 19:50   ` Colin Walters
2013-08-29 11:18     ` Stanacar, StefanX [this message]
2013-08-29 11:35       ` Colin Walters
2013-06-28 10:04 ` [RFC PATCH 6/8] lib/oeqa/utils/decorators.py: decorators for test methods Stefan Stanacar
2013-06-28 10:04 ` [RFC PATCH 7/8] lib/oeqa/runtime: image sanity tests Stefan Stanacar
2013-06-28 10:04 ` [RFC PATCH 8/8] lib/oeqa/runtime: add gcc test Stefan Stanacar
2013-06-28 22:06 ` [RFC PATCH 0/8] Proposed implementation of a new runtime tests framework Otavio Salvador
2013-06-28 22:29   ` Paul Eggleton
2013-07-04  6:51 ` Saul Wold
2013-07-04  9:10   ` Stanacar, StefanX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377775123.9984.7.camel@firebird.rb.intel.com \
    --to=stefanx.stanacar@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=walters@verbum.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.