diff options
author | David Sterba <dsterba@suse.com> | 2016-11-30 16:49:18 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:06:35 +0100 |
commit | 8fe3a7bfd0d045ec68882d0299e3ce1944ee1ed6 (patch) | |
tree | fe5b8a1cf1d5ee2ec45a7ccf30c100adcfe37967 | |
parent | 4927705d6f4b23a1ebc7949f1e7dbd16d05f1eb2 (diff) |
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>
-rwxr-xr-x | tests/mkfs-tests/006-partitioned-loopdev/test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |