]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Don't force run_tests.sh pep8 only to use -N.
authorDan Prince <dprince@redhat.com>
Mon, 26 Nov 2012 03:01:27 +0000 (22:01 -0500)
committerDan Prince <dprince@redhat.com>
Mon, 26 Nov 2012 03:01:27 +0000 (22:01 -0500)
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

run_tests.sh

index cd84049143c0629782517ffb626603d930185de3..8ac56a329180bdbe3fa62b6cff04f1b230a683aa 100755 (executable)
@@ -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;;