You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
685 B

#!/bin/bash
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
source ~/.venv/bin/activate
fi
python --version
export TEST_REAL_FS=1
echo ======================================================= ; \
echo Running unit tests with extra packages as non-root user ; \
python -m pyfakefs.tests.all_tests && \
echo ========================================================== ; \
echo Running unit tests without extra packages as non-root user ; \
python -m pyfakefs.tests.all_tests_without_extra_packages && \
echo ============================================ ; \
echo Running tests without extra packages as root ; \
sudo env "PATH=$PATH" python -m pyfakefs.tests.all_tests_without_extra_packages