]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/test-functions: instmods call to find should use -type f 13082/head
authorDan Streetman <ddstreet@canonical.com>
Sun, 14 Jul 2019 01:39:03 +0000 (21:39 -0400)
committerDan Streetman <ddstreet@canonical.com>
Tue, 16 Jul 2019 22:05:15 +0000 (18:05 -0400)
without using -type f, the logs print an error such as:

E:  E: modprobe: FATAL: Module asymmetric_keys not found in directory /lib/modules/4.15.0-54-generic

while this doesn't appear to cause problems, it can be extremely
distracting when trying to debug real failures.

test/test-functions

index 89fa16384518d26c69fb62f5f79e65a4f18ad772..dcbaea6f37492db5cfff427c66a4b47d7b8074f4 100644 (file)
@@ -1587,7 +1587,7 @@ instmods() {
                     | instmods
                 else
                     ( [[ "$_mpargs" ]] && echo $_mpargs
-                      find "$KERNEL_MODS" -path "*/${_mod#=}/*" -printf '%f\n' ) \
+                      find "$KERNEL_MODS" -path "*/${_mod#=}/*" -type f -printf '%f\n' ) \
                     | instmods
                 fi
                 ;;