tests: allow empty abstractions directory.
This commit is contained in:
parent
43278aeda2
commit
f443c71c7b
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue