diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 397959dce..0e185da2f 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -24,7 +24,7 @@ function display_result { fi } -if [ -z "$VIRTUAL_ENV" ]; then +if [[ -z "$VIRTUAL_ENV" ]] && [[ -d venv ]]; then source ./venv/bin/activate fi pep8 .