Travis: run TLS tests even without SCAPY_USE_PCAPDNET

This commit is contained in:
Pierre LALET 2017-12-27 23:52:29 +01:00
parent 5d39578828
commit 83ebd3b04d
1 changed files with 2 additions and 1 deletions

View File

@ -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