mirror of
https://github.com/containers/podman.git
synced 2025-09-22 20:56:21 +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
|
mkdir $testmount
|
||||||
run mount -t tmpfs -o noswap none $testmount
|
run mount -t tmpfs -o noswap none $testmount
|
||||||
if [[ $status -ne 0 ]]; then
|
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"
|
skip "requires kernel with tmpfs + noswap support"
|
||||||
fi
|
fi
|
||||||
die "Could not test for tmpfs + noswap support: $output"
|
die "Could not test for tmpfs + noswap support: $output"
|
||||||
|
Reference in New Issue
Block a user