btrfs-progs: tests: check for partscan support in misc/006-partitioned-loopdev

The travis CI does not have losetup with --partscan, skip the check in
that case so we can still run the mkfs testsuite.

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-11-30 16:49:18 +01:00
parent 4927705d6f
commit 8fe3a7bfd0
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@
source $TOP/tests/common
if ! losetup --help | grep -q 'partscan'; then
_not_run "losetup --partscan not available"
exit 0
fi
check_prereq mkfs.btrfs
setup_root_helper