TEST-83-BTRFS: Skip if root filesystem is not btrfs

This commit is contained in:
Daan De Meyer 2024-04-28 20:58:01 +02:00
parent 37029ce769
commit 191a31fbcf

View file

@ -3,6 +3,13 @@
set -eux
set -o pipefail
FSTYPE="$(stat --file-system --format "%T" /)"
if [[ "$FSTYPE" != "btrfs" ]]; then
echo "Root filesystem is $FSTYPE instead of btrfs, skipping"
exit 77
fi
TEST_BTRFS_OFFSET=/usr/lib/systemd/tests/unit-tests/manual/test-btrfs-physical-offset
SWAPFILE=/var/tmp/swapfile