TShark now exits with a status of 1 for an invalid interface or capture

filter; check for that, rather than for a status of 0.

svn path=/trunk/; revision=33397
This commit is contained in:
Guy Harris 2010-07-01 04:01:13 +00:00
parent 622f07b95e
commit 0edb77e6f3
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ clopts_step_invalid_capfilter() {
$TSHARK -f 'jkghg' -w './testout.pcap' > ./testout.txt 2>&1
RETURNVALUE=$?
if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
if [ ! $RETURNVALUE -eq $EXIT_COMMAND_LINE ]; then
test_step_failed "exit status: $RETURNVALUE"
else
grep -i 'Invalid capture filter: "jkghg"' ./testout.txt > /dev/null
@ -131,7 +131,7 @@ clopts_step_invalid_capfilter() {
clopts_step_invalid_interface() {
$TSHARK -i invalid_interface -w './testout.pcap' > ./testout.txt 2>&1
RETURNVALUE=$?
if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
if [ ! $RETURNVALUE -eq $EXIT_COMMAND_LINE ]; then
test_step_failed "exit status: $RETURNVALUE"
else
grep -i 'The capture session could not be initiated' ./testout.txt > /dev/null