diff --git a/scripts/sniffer-testsuite.test b/scripts/sniffer-testsuite.test index 6224c781b..491c1197e 100755 --- a/scripts/sniffer-testsuite.test +++ b/scripts/sniffer-testsuite.test @@ -8,11 +8,15 @@ echo -e "\nStaring snifftest on testsuite.pcap...\n" RESULT=$? [ $RESULT -ne 0 ] && echo -e "\nsnifftest failed\n" && exit 1 -echo -e "\nStaring snifftest on sniffer-ipv6.pcap...\n" -./sslSniffer/sslSnifferTest/snifftest ./scripts/sniffer-ipv6.pcap ./certs/server-key.pem ::1 11111 -RESULT=$? -[ $RESULT -ne 0 ] && echo -e "\nsnifftest (ipv6) failed\n" && exit 1 +if test $# -ne 0 && test "x$1" = "x-6"; +then + echo -e "\nStaring snifftest on sniffer-ipv6.pcap...\n" + ./sslSniffer/sslSnifferTest/snifftest ./scripts/sniffer-ipv6.pcap ./certs/server-key.pem ::1 11111 + + RESULT=$? + [ $RESULT -ne 0 ] && echo -e "\nsnifftest (ipv6) failed\n" && exit 1 +fi echo -e "\nSuccess!\n"