]> code.ossystems Code Review - openembedded-core.git/commit
lib/oeqa/utils/oeqemuconsole.py: handle qemu serial console connection
authorStefan Stanacar <stefanx.stanacar@intel.com>
Fri, 28 Jun 2013 08:09:28 +0000 (11:09 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Jul 2013 09:48:37 +0000 (10:48 +0100)
commit1cfec2f0a1a1ee84cc6b2b6ad890688da85c5e81
tree618c561b772f78d5498f2ec9e179f55469b2067b
parent683cac9768e0d38fa15ddc5451e6b2333f184033
lib/oeqa/utils/oeqemuconsole.py: handle qemu serial console connection

Python's telnetlib Telnet class connects only to AF_INET sockets, but we
want to use Unix domain socket for the qemu serial connection, so that's
why we override it.
Also we add a new read_all_timeout method similar to Telnet's read_all,
that read until a match or timeout and logs all output.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
meta/lib/oeqa/utils/oeqemuconsole.py [new file with mode: 0644]