From e6e9d38cd419cfcb0e823c6d642f5572523bd3eb Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Tue, 28 Jan 2014 15:18:38 +0100 Subject: [PATCH] Don't run pep8 tests with -P Sync the -P option from other project to don't run PEP8 when running it. Change-Id: I45ab69985f24d5c1bc387e927dca0640d3a84174 Partial-Bug: #1273598 --- run_tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 914514479e..ff3b015dab 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -11,7 +11,8 @@ function usage { echo " -F, --force Force a clean re-build of the virtual environment. Useful when dependencies have been added." echo " -f, --func Functional tests have been removed." echo " -u, --unit Run unit tests (default when nothing specified)" - echo " -p, --pep8 Run pep8 tests" + echo " -p, --pep8 Only run flake8 and HACKING compliance check" + echo " -P, --no-pep8 Don't run flake8 and HACKING compliance check" echo " --all Run pep8 and unit tests" echo " -c, --coverage Generate coverage report" echo " -d, --debug Run tests with testtools instead of testr. This allows you to use the debugger." @@ -28,6 +29,7 @@ function process_option { -f|--func) test_func=1;; -u|--unit) test_unit=1;; -p|--pep8) test_pep8=1;; + -P|--no-pep8) test_pep8=0;; --all) test_unit=1; test_pep8=1;; -c|--coverage) coverage=1;; -d|--debug) debug=1;;