summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/pyflakes.sh4
-rwxr-xr-xtests/sloccount.sh2
2 files changed, 4 insertions, 2 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
diff --git a/tests/sloccount.sh b/tests/sloccount.sh
index cdb629f7f..70150501e 100755
--- a/tests/sloccount.sh
+++ b/tests/sloccount.sh
@@ -1,2 +1,2 @@
#!/bin/bash
-sloccount module --duplicates --wide --details > sloccount.sc
+sloccount --duplicates --wide --details . > sloccount.sc