Run pep8 check in run_tests.sh as in tox

Until now the flake8 tests run by tox and run_tests.sh were a bit
different - run_tests.sh was not checking heat-* python scripts in bin
folder and was checking the docs folder that is ignored in tox' pep8
check.

This patch brings pep8 style checking done by run_tests.sh in line with
what is done by tox (and thus the gate).

Change-Id: Ie3f2c25210075df6b941854737f0d926d141601b
This commit is contained in:
Pavlo Shchelokovskyy 2014-03-29 23:47:20 +02:00
parent 3aaa843d1f
commit a096144db7
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ venv=.venv
with_venv=tools/with_venv.sh
wrapper=""
debug=0
flake8args="heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib"
function run_tests {
echo 'Running tests'
@ -72,7 +73,7 @@ function run_tests {
function run_pep8 {
echo "Running flake8..."
bash -c "${wrapper} flake8"
bash -c "${wrapper} flake8 ${flake8args}"
}
# run unit tests with pep8 when no arguments are specified