From 9c6dc650db12291abe19f5ca3966ce8d27c8a410 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 23 Jun 2011 19:22:21 +0000 Subject: Add a check for TShark's return status. svn path=/trunk/; revision=37774 --- test/suite-capture.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/suite-capture.sh') 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 -- cgit v1.2.3