X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=nsh_sfc_tests%2Fsfc_scripts%2Fstart_tcpdump.sh;h=46f8217e2602f045b604fc1d05e98a327be115e5;hb=859157b5db45927c7b4bb0b2d575e68805777a86;hp=9d51e667bd2ec6fe143abb304d0250cb06ab22b1;hpb=5ce772f3b2d83c31eda5c2abdcd6cc4547ecc6c8;p=csit.git diff --git a/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh b/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh index 9d51e667bd..46f8217e26 100755 --- a/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh +++ b/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh @@ -6,6 +6,11 @@ PWDDIR=$(pwd) cd ${ROOTDIR}/nsh_sfc_tests/sfc_scripts/ sudo rm -f temp_packet.pcap -sudo tcpdump -i $1 -c 1 -w temp_packet.pcap dst host $2 >/dev/null 2>&1 & +sudo /usr/sbin/tcpdump -i $1 -c 1 -w temp_packet.pcap dst host $2 & + +if [ ! $? -eq 0 ]; then + echo "Start the tcpdump failed!!!" + exit 1 +fi cd ${PWDDIR}