From 3bb32d846bd1e060d5487e90caeb934b9f7e602e Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 10 Sep 2025 13:36:28 +0200 Subject: [PATCH] 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 --- test/system/060-mount.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/system/060-mount.bats b/test/system/060-mount.bats index bdde9b459c..464ca5db62 100644 --- a/test/system/060-mount.bats +++ b/test/system/060-mount.bats @@ -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"