X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=nsh_sfc_tests%2Fsfc_scripts%2Fstart_tcpdump.sh;h=46f8217e2602f045b604fc1d05e98a327be115e5;hp=9d51e667bd2ec6fe143abb304d0250cb06ab22b1;hb=2a17b5c9e6746cff71eff0e0a9c6f822eb6645f8;hpb=726734466b81e83983b81b75d92c27612d47e68d 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}