From 588b5651dc515d642b110f61c41d78860206841c Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Wed, 10 Apr 2013 18:59:23 +0000 Subject: Remove "undefined name" pyflake errors A number of places tried to use undefined names. This included one powervm test which turned out to not check anything at all (used fake implementation of tested method) and needed to be moved. Make sure that this class of errors causes run_pep8 failure in the future. Change-Id: I82ccb63bbc6f6d2b20ecb7f06b2fc22f8f034a33 --- tools/run_pep8.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/run_pep8.sh b/tools/run_pep8.sh index 61b5f8985..7c2ec0130 100755 --- a/tools/run_pep8.sh +++ b/tools/run_pep8.sh @@ -22,4 +22,5 @@ PLUGINS_PATH=${SCRIPT_ROOT}/plugins/xenserver/xenapi/etc/xapi.d/plugins PYTHONPATH=${PLUGINS_PATH} ${PEP8} ./plugins/xenserver/xenapi \ `find plugins/xenserver/xenapi/etc/xapi.d/plugins -type f -perm +111` -! pyflakes nova/ | grep "imported but unused\|redefinition of function" +! pyflakes nova/ | grep "imported but unused\|redefinition of function\|undefined name '" | + grep -v "undefined name '_'" -- cgit