From 848fa128817b9eb6e61e54d77ab3c3eab22cbe3f Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Nov 19 2011 22:07:09 +0000 Subject: Fix tcpdump tests on C5 otherwise we get corrupted pcap file. --- diff --git a/tests/p_tcpdump/tcpdump_eth0.sh b/tests/p_tcpdump/tcpdump_eth0.sh index 67a7d9a..5c01c91 100755 --- a/tests/p_tcpdump/tcpdump_eth0.sh +++ b/tests/p_tcpdump/tcpdump_eth0.sh @@ -19,6 +19,7 @@ if [[ $IP =~ $regex ]] ping -q -c $COUNT -i 0.25 ${BASH_REMATCH[1]} sleep 1 killall -s SIGINT tcpdump + sleep 1 # reading from file, for each ping we should see two pakets WORKING=$( tcpdump -r $FILE | grep -ci icmp ) # The script will allways work, but if we the log does not contain diff --git a/tests/p_tcpdump/tcpdump_lo.sh b/tests/p_tcpdump/tcpdump_lo.sh index 92516e2..02624b9 100755 --- a/tests/p_tcpdump/tcpdump_lo.sh +++ b/tests/p_tcpdump/tcpdump_lo.sh @@ -14,7 +14,7 @@ sleep 1 ping -q -c $COUNT -i 0.25 127.0.0.1 sleep 1 killall -s SIGINT tcpdump - +sleep 1 # reading from file, for each ping we should see two pakets WORKING=$( tcpdump -r $FILE | grep -ci icmp ) if [ $WORKING == $[COUNT*2] ]