summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorJustin Shepherd <jshepher@rackspace.com>2011-05-16 20:08:51 -0500
committerJustin Shepherd <jshepher@rackspace.com>2011-05-16 20:08:51 -0500
commit67148b1093a7ff880f90a164a6cafa24b89ba951 (patch)
treed3d17dde810ed45d2c0b27bce38e69399a504d8d /run_tests.sh
parentea3b85bc276c268968c06679bf157fe4b0b4b68f (diff)
downloadnova-67148b1093a7ff880f90a164a6cafa24b89ba951.tar.gz
Added opt-out system for excluding files/dirs from pep8 (using GLOBIGNORE).
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh7
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}
}