diff options
Diffstat (limited to 'tests/pyflakes.sh')
-rwxr-xr-x | tests/pyflakes.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/pyflakes.sh b/tests/pyflakes.sh index 1ed61d2ee..0c7e03891 100755 --- a/tests/pyflakes.sh +++ b/tests/pyflakes.sh @@ -1,3 +1,5 @@ #!/bin/bash find -name '*.py' |egrep -v '^.(/tests/|/module/lib)'|xargs pyflakes > pyflakes.log || : -cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > pyflakes.txt +# Filter warnings and strip ./ from path +cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' | grep -i -E -v "'_'|pypath|webinterface|pyreq|hookmanager" > pyflakes.txt +sed -i 's/^.\///g' pyflakes.txt |