diff options
author | Justin Shepherd <jshepher@rackspace.com> | 2011-05-16 20:08:51 -0500 |
---|---|---|
committer | Justin Shepherd <jshepher@rackspace.com> | 2011-05-16 20:08:51 -0500 |
commit | 67148b1093a7ff880f90a164a6cafa24b89ba951 (patch) | |
tree | d3d17dde810ed45d2c0b27bce38e69399a504d8d /run_tests.sh | |
parent | ea3b85bc276c268968c06679bf157fe4b0b4b68f (diff) | |
download | nova-67148b1093a7ff880f90a164a6cafa24b89ba951.tar.gz |
Added opt-out system for excluding files/dirs from pep8 (using GLOBIGNORE).
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh index 2e4f4cd221..9aa5554842 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -59,9 +59,14 @@ function run_tests { function run_pep8 { echo "Running pep8 ..." + # Opt-out files from pep8 + ignore_scripts="*.sh:*nova-debug:*clean-vlans" + ignore_files="*eventlet-patch:*pip-requires" + ignore_dirs="*ajaxterm*" + GLOBIGNORE="$ignore_scripts:$ignore_files:$ignore_dirs" srcfiles=`find bin -type f ! -name "nova.conf*"` + srcfiles+=" `find tools/*`" srcfiles+=" nova setup.py plugins/xenserver/xenapi/etc/xapi.d/plugins/glance" - srcfiles+=" tools/esx/guest_tool.py tools/euca-get-ajax-console tools/install_venv.py" pep8 --repeat --show-pep8 --show-source --exclude=vcsversion.py ${srcfiles} } |