mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 15:25:27 +00:00
Fix swap regression test on btrfs
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
(cherry picked from commit 90c7af69c5
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -31,7 +31,8 @@ swap_file=$tmpdir/swapfile
|
|||||||
|
|
||||||
# check if we can run the test in tmpdir
|
# check if we can run the test in tmpdir
|
||||||
fstype=$(stat -f --format '%T' "${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
|
# create a mountpoint not tmpfs or zfs
|
||||||
mount_file=$tmpdir/mountfile
|
mount_file=$tmpdir/mountfile
|
||||||
mount_point=$tmpdir/mountpoint
|
mount_point=$tmpdir/mountpoint
|
||||||
|
Reference in New Issue
Block a user