generic-poky/meta/lib/oeqa/runtime
Stefan Stanacar efff0d5504 lib/oeqa/runtime: ping: fix ping false fail
We run the ping test as soon as we reach the login prompt.
But sometimes (seen in sato systemd) we end up with link down/link up stuff like:

    qemux86-64 login: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
    IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

The logic behind ping -w 30 -c 1 was to wait at most 30 seconds
for at least one reply,  but there is a catch: reply doesn't seems
to be echo reply but any reply (non-reply means loss not network error)
ping's man page:
    -w deadline
              Specify  a  timeout, in seconds, before ping exits regardless of
              how many packets have been sent or received. In this  case  ping
              does  not  stop after count packet are sent, it waits either for
              deadline expire or until count probes are answered or  for  some
              error notification from network.

Just when the link up/link down happens ping returns:
    From 192.168.7.1 icmp_seq=1 Destination Host Unreachable
    --- 192.168.7.2 ping statistics ---
    1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

and exits sooner than the 30 seconds timeout.

This patch should do what was originally intended (wait at most
30 seconds for at least one reply).

(From OE-Core rev: 56d144fd22d37189e49cdf3032afb00f0be469c6)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-08-30 18:08:05 +01:00
..
files lib/oeqa/runtime: add test for perl 2013-08-26 11:47:20 +01:00
__init__.py classes/testimage: add support for finding tests in other layers 2013-08-28 23:36:08 +01:00
buildcvs.py lib/oeqa/runtime: add iptables, cvs and sudoku projects build tests on target 2013-08-26 11:47:21 +01:00
buildiptables.py lib/oeqa/runtime: add iptables, cvs and sudoku projects build tests on target 2013-08-26 11:47:21 +01:00
buildsudoku.py lib/oeqa/runtime: add iptables, cvs and sudoku projects build tests on target 2013-08-26 11:47:21 +01:00
connman.py lib/oeqa/oetest.py: provide a ps command for all tests 2013-07-16 10:04:16 +01:00
date.py lib/oeqa/runtime: remove some unnecessary checks from setUpModule 2013-08-28 23:36:08 +01:00
df.py lib/oeqa/runtime: remove some unnecessary checks from setUpModule 2013-08-28 23:36:08 +01:00
dmesg.py lib/oeqa/runtime: remove some unnecessary checks from setUpModule 2013-08-28 23:36:08 +01:00
gcc.py lib/oeqa/runtime: add gcc test 2013-07-09 10:53:45 +01:00
ldd.py lib/oeqa/runtime: add a test for ldd 2013-08-26 11:47:20 +01:00
logrotate.py lib/oeqa/runtime: add new logrotate test 2013-08-26 11:47:20 +01:00
multilib.py lib/oeqa/runtime: multilib: fix typo 2013-08-26 16:29:18 +01:00
pam.py lib/oeqa/runtime: add new PAM support test 2013-08-26 11:47:20 +01:00
perl.py lib/oeqa/runtime: add test for perl 2013-08-26 11:47:20 +01:00
ping.py lib/oeqa/runtime: ping: fix ping false fail 2013-08-30 18:08:05 +01:00
rpm.py lib/oeqa/runtime: rpm: add install and erase tests 2013-08-26 11:47:20 +01:00
scp.py lib/oeqa/runtime: add new scp test 2013-08-26 11:47:20 +01:00
skeletoninit.py lib/oeqa: move skeletoninit.py where it belongs 2013-08-30 16:23:44 +01:00
smart.py lib/oeqa/runtime: smart: add checks for smart output 2013-08-26 16:29:18 +01:00
ssh.py lib/oeqa/runtime: image sanity tests 2013-07-09 10:53:45 +01:00
syslog.py lib/oeqa/runtime: syslog: fix test for logger in case of systemd 2013-08-30 16:23:47 +01:00
systemd.py lib/oeqa/runtime: add new systemd tests 2013-08-13 23:06:00 +01:00
vnc.py lib/oeqa/runtime: remove some unnecessary checks from setUpModule 2013-08-28 23:36:08 +01:00
x32lib.py lib/oeqa/runtime: add basic test for x32 images 2013-08-26 11:47:19 +01:00
xorg.py oeqa/runtime/xorg: use the right ps command for xorg test 2013-08-03 10:33:03 +01:00