tests: check mountpoints with matching suffixes

Filesystem mountpoints with matching suffixes, i.e.
`/tmp` and `/var/tmp` was causing image builds to
fail. Since this was fixed with #2141 the integration
tests have been updated to check for this.
This commit is contained in:
Gianluca Zuccarelli 2022-02-23 14:12:20 +00:00 committed by Christian Kellner
parent 4d83ae9878
commit ab306943d4

View file

@ -147,11 +147,11 @@ mountpoint = "/"
size = 2147483648
[[customizations.filesystem]]
mountpoint = "/var"
mountpoint = "/tmp"
size = 131072000
[[customizations.filesystem]]
mountpoint = "/var/log"
mountpoint = "/var/tmp"
size = 131072000
[[customizations.filesystem]]
@ -175,7 +175,7 @@ greenprint "💬 Checking mountpoints"
INFO="$(sudo /usr/libexec/osbuild-composer-test/image-info "${IMAGE_FILENAME}")"
FAILED_MOUNTPOINTS=()
for MOUNTPOINT in '/' '/var' '/var/log' '/var/log/audit' '/usr'; do
for MOUNTPOINT in '/' '/tmp' '/var/tmp' '/var/log/audit' '/usr'; do
EXISTS=$(jq -e --arg m "$MOUNTPOINT" 'any(.fstab[] | .[] == $m; .)' <<< "${INFO}")
if $EXISTS; then
greenprint "INFO: mountpoint $MOUNTPOINT exists"