From 8fe3a7bfd0d045ec68882d0299e3ce1944ee1ed6 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 30 Nov 2016 16:49:18 +0100 Subject: [PATCH] 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 --- tests/mkfs-tests/006-partitioned-loopdev/test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/mkfs-tests/006-partitioned-loopdev/test.sh b/tests/mkfs-tests/006-partitioned-loopdev/test.sh index 4415b468..12f37842 100755 --- a/tests/mkfs-tests/006-partitioned-loopdev/test.sh +++ b/tests/mkfs-tests/006-partitioned-loopdev/test.sh @@ -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