From 83ebd3b04d043a1e481b477bc5274c5d279e6e4f Mon Sep 17 00:00:00 2001 From: Pierre LALET Date: Wed, 27 Dec 2017 23:52:29 +0100 Subject: [PATCH] Travis: run TLS tests even without SCAPY_USE_PCAPDNET --- .travis/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis/test.sh b/.travis/test.sh index 2eef59d26..238c39608 100644 --- a/.travis/test.sh +++ b/.travis/test.sh @@ -108,7 +108,8 @@ fi PYTHON=`which python` $SCAPY_SUDO ./run_tests -c ./configs/travis.utsc -T "bpf.uts" -T "mock_windows.uts" $UT_FLAGS || exit $? # Run unit tests with openssl if we have root privileges -if [ "$TRAVIS_OS_NAME" = "linux" ] && [ -n "$SCAPY_USE_PCAPDNET" ] && [ -n "$SCAPY_SUDO" ] +if [ "$TRAVIS_OS_NAME" = "linux" ] && [ -n "$SCAPY_SUDO" ] && \ + ! python --version 2>&1 | grep -q '^Python 3\.[012345]' then PYTHON=`which python` $SCAPY_SUDO ./run_tests -q -F -t tls/tests_tls_netaccess.uts $UT_FLAGS || exit $? fi