tests: allow empty abstractions directory.

This commit is contained in:
Alexandre Pujol 2025-06-21 21:05:53 +02:00
parent 43278aeda2
commit f443c71c7b
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -390,7 +390,7 @@ check_profiles() {
check_abstractions() { check_abstractions() {
_msg "Checking abstractions" _msg "Checking abstractions"
mapfile -t files < <(find "$APPARMORD/abstractions" -type f -not -path "$APPARMORD/abstractions/*.d/*") mapfile -t files < <(find "$APPARMORD/abstractions" -type f -not -path "$APPARMORD/abstractions/*.d/*" 2>/dev/null || true)
jobs=0 jobs=0
WITH_CHECK=( WITH_CHECK=(
abstractions equivalent abstractions equivalent
@ -408,8 +408,8 @@ check_abstractions() {
wait wait
mapfile -t files < <( mapfile -t files < <(
find "$APPARMORD/abstractions" -type f -path "$APPARMORD/abstractions/*.d/*" find "$APPARMORD/abstractions" -type f -path "$APPARMORD/abstractions/*.d/*" 2>/dev/null || true
find "$APPARMORD/mappings" -type f find "$APPARMORD/mappings" -type f 2>/dev/null || true
) )
# shellcheck disable=SC2034 # shellcheck disable=SC2034
jobs=0 jobs=0