diff --git a/tests/regression/apparmor/swap.sh b/tests/regression/apparmor/swap.sh index 26bbff744..218901188 100755 --- a/tests/regression/apparmor/swap.sh +++ b/tests/regression/apparmor/swap.sh @@ -31,7 +31,8 @@ swap_file=$tmpdir/swapfile # check if we can run the test in tmpdir fstype=$(stat -f --format '%T' "${tmpdir}") -if [ "${fstype}" = "tmpfs" ] || [ "${fstype}" = "zfs" ] ; then +if [ "${fstype}" = "tmpfs" ] || [ "${fstype}" = "zfs" ] \ + || [ "${fstype}" = "btrfs" ]; then # create a mountpoint not tmpfs or zfs mount_file=$tmpdir/mountfile mount_point=$tmpdir/mountpoint