mirror of
https://github.com/containers/podman.git
synced 2025-09-21 03:35:06 +08:00
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:
@ -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"
|
||||
|
Reference in New Issue
Block a user