diff --git a/.travis/run.sh b/.travis/run.sh index 7c1e847c1..91f6f7663 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -13,11 +13,6 @@ if [[ "$(uname -s)" == "Darwin" ]]; then fi fi -source ~/.venv/bin/activate - -if [[ "$(uname -s)" == "Darwin" ]]; then - # no fakeroot on OS X - sudo tox -e $TOXENV -r -else - fakeroot -u tox -r -fi +# do not use fakeroot, but run as root on travis. +# avoids the dreaded EISDIR sporadic failures. see #2482. +sudo bash -c "source ~/.venv/bin/activate ; tox -e $TOXENV -r"