Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7267344
)
Fix the tcpdump start issue.
68/7268/3
author
Fangyin Hu
<fangyinx.hu@intel.com>
Thu, 22 Jun 2017 09:32:56 +0000
(
02:32
-0700)
committer
Hu Fangyin
<fangyinx.hu@intel.com>
Thu, 22 Jun 2017 13:22:54 +0000
(13:22 +0000)
Change-Id: I529899bdc031e8d5e367bad5a829857c2c83a3ba
Signed-off-by: Fangyin Hu <fangyinx.hu@intel.com>
nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
patch
|
blob
|
history
diff --git
a/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
b/nsh_sfc_tests/sfc_scripts/start_tcpdump.sh
index
9d51e66
..
46f8217
100755
(executable)
--- 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}