generic-poky/meta
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
..
classes multilib.bbclass: Expand the WHITELISTs with multilib prefix 2013-08-30 18:06:31 +01:00
conf web-webkit: Drop, we have midori now 2013-08-30 17:27:08 +01:00
files device_table-minimal.txt: use user/group names instead of uid/gid 2013-08-16 11:14:34 +01:00
lib lib/oeqa/runtime: ping: fix ping false fail 2013-08-30 18:08:05 +01:00
recipes-bsp remove the unnecessary protocol parameters 2013-08-30 16:23:46 +01:00
recipes-connectivity bluez4: fix network Connect parameter validation 2013-08-30 18:06:31 +01:00
recipes-core systemd: use /bin/mkdir instead of host mkdir path 2013-08-30 18:06:32 +01:00
recipes-devtools python: Backport 2 CVE from upstream 2013-08-30 18:06:32 +01:00
recipes-extended bc: add bc-native 2013-08-27 10:55:07 +01:00
recipes-gnome gtk+3: pull forward the gtk+2 hardcoded libtool patch 2013-08-30 16:23:47 +01:00
recipes-graphics mesa: add missing elfutils dependency for r600 PACKAGECONFIG 2013-08-30 18:06:31 +01:00
recipes-kernel lttng-ust: Update to version 2.2.1 2013-08-30 16:23:47 +01:00
recipes-lsb4 libpng12: rename libpng_1.2.50 to libpng12 2013-04-09 13:16:53 +01:00
recipes-multimedia libsamplerate0: add PACKAGECONFIG for fftw 2013-08-30 18:06:31 +01:00
recipes-qt qt4: add upstream QTBUG-32534 patch for QHttpMultiPart upload corruption 2013-08-06 12:39:58 +01:00
recipes-rt rt-tests: add Upstream-Status for cyclictest patch 2013-07-29 13:09:03 +01:00
recipes-sato web-webkit: Drop, we have midori now 2013-08-30 17:27:08 +01:00
recipes-support gpgme: update to 1.4.3 2013-08-26 11:47:17 +01:00
site apr_cv_mutex_recursive=yes added to apr_1.4.6.bb to make rosnodes work 2013-07-05 15:34:22 +01:00
COPYING.MIT
recipes.txt meta/recipes.txt: add recipes-lsb4 2013-04-10 09:23:17 +01:00