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] ]