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:53:44 +0000 (10:53 +0100)
commit200c0b82202956189c9f807b32579679ed44ae6a
tree86977235197deb4a9f0645b74c03247b021cf63d
parenta4ca2495c88b21be2f30cf8ee0564fb5b99c7404
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.

(From OE-Core rev: 1cfec2f0a1a1ee84cc6b2b6ad890688da85c5e81)

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