test: check for btrfs in the current directory

The old test was checking if '/' is btrfs but we should check if the
current directory is btrfs.

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2023-11-29 12:30:42 +00:00 committed by Andrei Vagin
parent fc94b2d158
commit 900909d95e

View file

@ -9,7 +9,7 @@ prep
./test/zdtm.py run -t zdtm/static/maps00 --fault 3 --report report -f h || fail
# FIXME: fhandles looks broken on btrfs
grep -P "/.* / " /proc/self/mountinfo | grep -q btrfs || NOBTRFS=$?
findmnt --noheadings --target . | grep -q btrfs || NOBTRFS=$?
if [ $NOBTRFS -eq 1 ] ; then
./test/zdtm.py run -t zdtm/static/inotify_irmap --fault 128 --pre 2 -f uns || fail
fi