From cca5145e54fe69c144a035687ff7aed91d8becac Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Tue, 25 Apr 2017 15:32:12 +0100 Subject: [PATCH] updated run_tests to not use venv in the app if VIRTUAL_ENV is set --- scripts/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 01e109020..584ff8e5a 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -24,7 +24,7 @@ function display_result { fi } -if [ -d venv ]; then +if [[ -z "$VIRTUAL_ENV" ]] && [[ -d venv ]]; then source ./venv/bin/activate fi pycodestyle .