Skip to content

Commit

Permalink
Merge pull request #342 from p-l-/fix-tests
Browse files Browse the repository at this point in the history
Travis CI: fix install & tests
  • Loading branch information
p-l- committed Nov 10, 2016
2 parents 6831cab + a9937be commit a49473c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Install dependencies using pip
if [ -z $TRAVIS_SUDO ] && [ "$TRAVIS_OS_NAME" = "osx" ]
then
PIP_INSTALL_FLAGS="--user"
if [ -z "$TRAVIS_SUDO" -o "$TRAVIS_SUDO" = "false" ]
then
TRAVIS_SUDO=""
if [ "$TRAVIS_OS_NAME" = "osx" ]
then
PIP_INSTALL_FLAGS="--user"
fi
fi
$TRAVIS_SUDO pip install $PIP_INSTALL_FLAGS ecdsa mock

Expand Down
5 changes: 3 additions & 2 deletions .travis/test.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Dump Scapy config
python -c "from scapy.all import *; print conf"

# Don't run tests that requires root privileges
if [ -z $TRAVIS_SUDO ]
# Don't run tests that require root privileges
if [ -z "$TRAVIS_SUDO" -o "$TRAVIS_SUDO" = "false" ]
then
UT_FLAGS="-K netaccess "
TRAVIS_SUDO=""
fi

# Test AEAD modes in IPSec if available
Expand Down

0 comments on commit a49473c

Please sign in to comment.