aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite-capture.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite-capture.sh')
-rwxr-xr-xtest/suite-capture.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/suite-capture.sh b/test/suite-capture.sh
index 854979d8ce..ab8782a9ec 100755
--- a/test/suite-capture.sh
+++ b/test/suite-capture.sh
@@ -364,6 +364,12 @@ capture_step_snapshot() {
# use tshark to filter out all packets, which are larger than 68 bytes
$TSHARK -r ./testout.pcap -w ./testout2.pcap -R 'frame.cap_len>68' > ./testout.txt 2>&1
+ if [ $? -ne 0 ]; then
+ echo
+ cat ./testout.txt
+ test_step_failed "Problem running TShark!"
+ return
+ fi
# ok, we got a capture file, does it contain exactly 0 packets?
$CAPINFOS ./testout2.pcap > ./testout.txt