• Lukasz Majewski's avatar
    test: hsr: Extract version agnostic information from ping command output · 40b90bf6
    Lukasz Majewski authored
    Current code checks if ping command output match hardcoded pattern:
    "10 packets transmitted, 10 received, 0% packet loss,".
    
    Such approach will work only from one ping program version (for which
    this test has been originally written).
    This patch address problem when ping with different summary output
    like "10 packets transmitted, 10 packets received, 0% packet" is
    used to run this test - for example one from busybox (as the test
    system runs in QEMU with rootfs created with buildroot).
    
    The fix is to modify output of ping command to be agnostic to ping
    version used on the platform.
    Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    40b90bf6
hsr_common.sh 1.53 KB