Skip to content

Commit 88e3823

Browse files
committed
tests: check_selftest: include Python scripts in the check
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 948ef3d commit 88e3823

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/patch/check_selftest/check_selftest.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@
55

66
rt=0
77

8-
files=$(git show --pretty="" --name-only -- tools/testing/selftests*.sh)
8+
files=$(git show --pretty="" --name-only -- \
9+
tools/testing/selftests*.sh \
10+
tools/testing/selftests*.py \
11+
| grep -v "/lib/"
12+
)
913
if [ -z "$files" ]; then
1014
echo "No net selftest shell script" >&$DESC_FD
1115
exit $rt
1216
fi
1317

1418
for file in $files; do
19+
echo "Checking $file"
1520
f=$(basename $file)
1621
d=$(dirname $file)
1722
if [ -f "${d}/Makefile" ] && ! grep -P "[\t| ]${f}" ${d}/Makefile; then

0 commit comments

Comments
 (0)