remove flake8 option from run_tests.sh

flake8 will read the section [flake8] of tox.ini to guide the
behavior. In run_tests.sh, the function run_flake8() does not
need the falke8 option any more.

Fixes Bug #1214159
Change-Id: I1bbba279a339e35c776a6969598b398f57fd7646
This commit is contained in:
Kui Shi 2013-08-20 06:28:04 +08:00 committed by Morgan Fainberg
parent da26317a14
commit 361185c0be
1 changed files with 2 additions and 10 deletions

View File

@ -127,17 +127,9 @@ function run_flake8 {
echo "Running flake8 ..."
# Opt-out files from flake8
ignore_scripts="*.pyc,*.pyo,*.sh,*.swp,*.rst"
ignore_files="*.txt"
ignore_dirs=".venv,.tox,build,dist,doc,openstack,vendor,*egg"
ignore="$ignore_scripts,$ignore_files,$ignore_dirs"
srcfiles="."
# Just run flake8 in current environment
echo ${wrapper} flake8 $FLAGS --show-source \
--exclude=${ignore} ${srcfiles} | tee pep8.txt
${wrapper} flake8 $FLAGS --show-source \
--exclude=${ignore} ${srcfiles} | tee pep8.txt
echo ${wrapper} flake8 $FLAGS | tee pep8.txt
${wrapper} flake8 $FLAGS | tee pep8.txt
}
NOSETESTS="nosetests $noseopts $noseargs"