test/system: skip noswap memory mounts correctly

On debian with an older we get this error instead:
fsconfig() failed: tmpfs: Unknown parameter 'noswap'

So handle that case as well to skip the test correctly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2025-09-10 13:36:28 +02:00
parent 52fcdcf64c
commit 3bb32d846b
No known key found for this signature in database
GPG key ID: EB145DD938A3CAF2

View file

@ -370,7 +370,7 @@ EOF
mkdir $testmount
run mount -t tmpfs -o noswap none $testmount
if [[ $status -ne 0 ]]; then
if [[ $output =~ "bad option" ]]; then
if [[ $output =~ "bad option" ]] || [[ "$output" =~ "Unknown parameter" ]]; then
skip "requires kernel with tmpfs + noswap support"
fi
die "Could not test for tmpfs + noswap support: $output"