From a096144db70edd9df1b03140d9f7eb78d44ed137 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Sat, 29 Mar 2014 23:47:20 +0200 Subject: [PATCH] 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 --- run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 67b1f5c2a9..d645311821 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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