on osx, we already ran the tests w/o fakeroot, directly as root. do the same for linux. (cherry picked from commit 562cce1dee610b8c26a0d8d42a3f9df5adf96503)
@@ -13,11 +13,6 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
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"