mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00: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:
parent
52fcdcf64c
commit
3bb32d846b
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue