Module: check_mk
Branch: master
Commit: fd12532485cc1381efc2155edb97f20190ce0c58
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fd12532485cc13…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Feb 21 13:23:52 2019 +0100
Find (sane) Python files in tests/ directory, too.
Change-Id: Ife68f7eeebdf769e3adf2a4f95899f6690691401
---
tests/find-python-files | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tests/find-python-files b/tests/find-python-files
index 23d65c9..31ca57a 100755
--- a/tests/find-python-files
+++ b/tests/find-python-files
@@ -23,10 +23,7 @@ SEARCH+=" omd/packages/cma"
SEARCH+=" omd/packages/maintenance"
SEARCH+=" omd/packages/omd"
SEARCH+=" scripts"
-# Tests contain some very large data structures (e.g.
-# tests/unit/checks/test_docker_parse_node_images.py). Skip them for the
-# moment because they make YAPF run more than 60 minutes instead of 8 minutes
-#SEARCH+=" tests"
+SEARCH+=" tests"
SEARCH+=" web/app"
SEARCH+=" werk"
@@ -34,7 +31,12 @@ SEARCH+=" werk"
REAL_SEARCH=$(realpath $SEARCH)
# while read F is used to deal with files containing whitespaces
-find $REAL_SEARCH -name .venv -prune -o -type f -print | sort | while read F; do
+find $REAL_SEARCH \
+ -name .mypy_cache -prune -o \
+ -name .venv -prune -o \
+ -name test_docker_parse_node_images.py -prune -o \
+ -name typeshed -prune -o \
+ -type f -print | sort | while read F; do
if [[ "$F" == *.py ]] || head -n 1 "$F" | grep -q
'^#!.*python$' >/dev/null 2>&1; then
echo "$F"
fi