summaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-02-14 02:17:34 +0000
committerGerrit Code Review <review@openstack.org>2013-02-14 02:17:34 +0000
commit0cb643a10f9c35eddebe246b453fd24082bfbbc8 (patch)
treefbba3b156892792f89e12e18af99457562c5d936 /run_tests.sh
parent12f007b3b6b00dd40dca3b4fdfb5a08d07f94edc (diff)
parent5dd5625d976603bcba8152c0476290d0aa81f5d7 (diff)
downloadnova-0cb643a10f9c35eddebe246b453fd24082bfbbc8.tar.gz
nova-0cb643a10f9c35eddebe246b453fd24082bfbbc8.tar.xz
nova-0cb643a10f9c35eddebe246b453fd24082bfbbc8.zip
Merge "Module import style checking changes"
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh
index be9b0fa73..1f269fbfe 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -93,6 +93,8 @@ export venv_name
export tools_dir
export venv=${venv_path}/${venv_dir}
+SCRIPT_ROOT=$(dirname $(readlink -f "$0"))
+
if [ $no_site_packages -eq 1 ]; then
installvenvopts="--no-site-packages"
fi
@@ -156,12 +158,11 @@ function run_pep8 {
srcfiles=`find nova -type f -name "*.py" ! -wholename "nova\/openstack*"`
srcfiles+=" `find bin -type f ! -name "nova.conf*" ! -name "*api-paste.ini*" ! -name "*~"`"
srcfiles+=" `find tools -type f -name "*.py"`"
- srcfiles+=" `find plugins -type f -name "*.py"`"
srcfiles+=" `find smoketests -type f -name "*.py"`"
srcfiles+=" setup.py"
# Until all these issues get fixed, ignore.
- ignore='--ignore=E12,E711,E721,E712,N403,N404'
+ ignore='--ignore=E12,E711,E721,E712,N403,N404,N303'
# First run the hacking selftest, to make sure it's right
echo "Running hacking.py self test"
@@ -171,6 +172,10 @@ function run_pep8 {
echo "Running pep8"
${wrapper} python tools/hacking.py ${ignore} ${srcfiles}
+ PYTHONPATH=$SCRIPT_ROOT/plugins/xenserver/networking/etc/xensource/scripts ${wrapper} python tools/hacking.py ${ignore} ./plugins/xenserver/networking
+
+ PYTHONPATH=$SCRIPT_ROOT/plugins/xenserver/xenapi/etc/xapi.d/plugins ${wrapper} python tools/hacking.py ${ignore} ./plugins/xenserver/xenapi
+
${wrapper} bash tools/unused_imports.sh
# NOTE(sdague): as of grizzly-2 these are passing however leaving the comment
# in here in case we need to break it out when we get more of our hacking working