From: Dan Prince Date: Mon, 26 Nov 2012 03:01:27 +0000 (-0500) Subject: Don't force run_tests.sh pep8 only to use -N. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=991619e64aa2b0c7310469c946123ee2ff0d93e6;p=openstack-build%2Fneutron-build.git Don't force run_tests.sh pep8 only to use -N. Previously running run_tests.sh -p would *always* run outside of the virtual environment. This commit makes -p work equally well with -N (no-virtual-env) and -V (virtual-env). Change-Id: I214404e85af2122b2ea7330e6496848a1e0d7ddf --- diff --git a/run_tests.sh b/run_tests.sh index cd8404914..8ac56a329 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -26,7 +26,7 @@ function process_option { -V|--virtual-env) let always_venv=1; let never_venv=0;; -N|--no-virtual-env) let always_venv=0; let never_venv=1;; -f|--force) let force=1;; - -p|--pep8) let just_pep8=1;let never_venv=1; let always_venv=0;; + -p|--pep8) let just_pep8=1;; -P|--no-pep8) no_pep8=1;; -l|--pylint) let just_pylint=1; let never_venv=1; let always_venv=0;; -c|--coverage) coverage=1;;