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:
parent
3aaa843d1f
commit
a096144db7
@ -42,6 +42,7 @@ venv=.venv
|
|||||||
with_venv=tools/with_venv.sh
|
with_venv=tools/with_venv.sh
|
||||||
wrapper=""
|
wrapper=""
|
||||||
debug=0
|
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 {
|
function run_tests {
|
||||||
echo 'Running tests'
|
echo 'Running tests'
|
||||||
@ -72,7 +73,7 @@ function run_tests {
|
|||||||
|
|
||||||
function run_pep8 {
|
function run_pep8 {
|
||||||
echo "Running flake8..."
|
echo "Running flake8..."
|
||||||
bash -c "${wrapper} flake8"
|
bash -c "${wrapper} flake8 ${flake8args}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# run unit tests with pep8 when no arguments are specified
|
# run unit tests with pep8 when no arguments are specified
|
||||||
|
Loading…
Reference in New Issue
Block a user