aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-12-14 04:23:04 +0000
committerMike Frysinger <vapier@gentoo.org>2012-12-14 04:23:04 +0000
commit2277e7cb089823176344c9edf6ed3e085108487d (patch)
tree3885f9e3f38df91a939cf1b59117e74247b3f639 /tests
parentlddtree.py: fix typo found by pyflakes (diff)
downloadpax-utils-2277e7cb089823176344c9edf6ed3e085108487d.tar.gz
pax-utils-2277e7cb089823176344c9edf6ed3e085108487d.tar.bz2
pax-utils-2277e7cb089823176344c9edf6ed3e085108487d.zip
run pyflakes on .py files if available
Diffstat (limited to 'tests')
-rwxr-xr-xtests/source/dotest14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/source/dotest b/tests/source/dotest
index 7b462f9..711e19c 100755
--- a/tests/source/dotest
+++ b/tests/source/dotest
@@ -73,6 +73,7 @@ find "${top_srcdir}" '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
testit src.use.xfuncs
+
#
# check for style
#
@@ -88,6 +89,7 @@ find "${top_srcdir}" '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
testit src.style
+
#
# Auto clean up the space issues
#
@@ -104,4 +106,16 @@ for x in $(find ../.. '(' -name '*.c' -o -name '*.h' ')' ); do
done > src.space
testit src.space
+
+
+#
+# Python checks
+#
+if pyflakes </dev/null 2>/dev/null; then
+ find "${top_srcdir}" -name '*.py' -exec pyflakes {} + > src.pyflakes
+ testit src.pyflakes
+fi
+
+
+
exit ${ret}