From 90c7af69c5e888b5de47f3b22eaf95d9b85e8993 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Fri, 13 Dec 2024 12:08:35 -0800 Subject: [PATCH] Fix swap regression test on btrfs Signed-off-by: Ryan Lee --- tests/regression/apparmor/swap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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