diff --git a/tests/regression/apparmor/swap.sh b/tests/regression/apparmor/swap.sh index b07ea3b40..c15987a71 100755 --- a/tests/regression/apparmor/swap.sh +++ b/tests/regression/apparmor/swap.sh @@ -38,7 +38,9 @@ fi swap_file=$tmpdir/swapfile -dd if=/dev/zero of=${swap_file} bs=1024 count=512 2> /dev/null +# ppc64el wants this to be larger than 640KiB +# arm/small machines want this as small as possible +dd if=/dev/zero of=${swap_file} bs=1024 count=768 2> /dev/null /sbin/mkswap -f ${swap_file} > /dev/null # TEST 1. Make sure can enable and disable swap unconfined