From 2b490fd2ef3a74402147893be646c00505da8628 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Sun, 22 Apr 2012 21:11:03 -0400 Subject: Exclude xenapi plugins from pep8/hacking checks. Fixes LP Bug #987055. Change-Id: I7132b88c5e0a90b16d0f8e35df45b82e7991280f --- run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 72f983565..97d229f67 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -96,12 +96,12 @@ function run_tests { # when running on devstack. # NOTE(lzyeval): Avoid selecting *.pyc files to reduce pep8 check-up time # when running on devstack. -xen_api_path="plugins/xenserver/xenapi/etc/xapi.d/plugins" +# NOTE(dprince): Exclude xenapi plugins. They are Python 2.4 code and as such +# cannot be expected to work with tools/hacking checks. xen_net_path="plugins/xenserver/networking/etc/xensource/scripts" srcfiles=`find nova -type f -name "*.py"` srcfiles+=" `find bin -type f ! -name "nova.conf*" ! -name "*api-paste.ini*"`" srcfiles+=" `find tools -type f -name "*.py"`" -srcfiles+=" `find ${xen_api_path} ${xen_net_path} -type f ! -name "*.patch" ! -name "*.pyc"`" srcfiles+=" setup.py" function run_pep8 { -- cgit