diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-06-23 19:22:21 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-06-23 19:22:21 +0000 |
commit | 9c6dc650db12291abe19f5ca3966ce8d27c8a410 (patch) | |
tree | 48fda3bd865c01b77a11d2a2bcea2bfa9ec687c4 /test | |
parent | 23659efce689aa7242d924d77e455316f930690d (diff) |
Add a check for TShark's return status.
svn path=/trunk/; revision=37774
Diffstat (limited to 'test')
-rwxr-xr-x | test/suite-capture.sh | 6 |
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 |