[oe-commits] Stefan Stanacar : oeqa/utils/qemurunner: get ip old fashioned way and use tcp serial console

git at git.openembedded.org git at git.openembedded.org
Tue Aug 13 21:55:57 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 55e78185110937b7e2b143cf1020426d8df58b72
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=55e78185110937b7e2b143cf1020426d8df58b72

Author: Stefan Stanacar <stefanx.stanacar at intel.com>
Date:   Tue Aug 13 17:47:12 2013 +0300

oeqa/utils/qemurunner: get ip old fashioned way and use tcp serial console

The way we read data from the serial console was unreliable and blocking (AutoBuilder
seems to hit that often), so change the serial console type from unix socket to tcp
and reverse the connection - don't let qemu act as server (wait for a connection).
So now the serial console is used to save the boot log and make sure that we reached
the login prompt. Until a better way is found this should solve some of the AutoBuilder
failures (one being YB#4904).

Also we need to use the same method as the old qemuimagetest to get the ip
(from the qemu process arguments), because that it's more reliable.
The first version used here was to log into the target and use the output of
"ip addr show eth0" but then systemd decides that it should rename interfaces,
so that was changed to get the ip of the interface that has the default gw,
but if there is no default gw we'll get the loopback ip and we end up trying to
ssh into the host machine (some recent AutoBuilder runs showed that).

Changed in V2:
 - use -ww for ps, as output might get truncated

Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/lib/oeqa/utils/oeqemuconsole.py |   45 ------------
 meta/lib/oeqa/utils/qemurunner.py    |  123 ++++++++++++++++++++++------------
 2 files changed, 81 insertions(+), 87 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=55e78185110937b7e2b143cf1020426d8df58b72


More information about the Openembedded-commits mailing list