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:
parent
4d83ae9878
commit
ab306943d4
1 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue