--- tests/t6004-dm-many-partitions.sh | 4 +++- tests/t6005-dm-uuid.sh | 4 +++- tests/t6006-dm-512b-sectors.sh | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/tests/t6004-dm-many-partitions.sh b/tests/t6004-dm-many-partitions.sh index 01d7fc0..22d38bf 100755 --- a/tests/t6004-dm-many-partitions.sh +++ b/tests/t6004-dm-many-partitions.sh @@ -21,7 +21,9 @@ require_root_ require_udevadm_settle_ -(dmsetup --help) > /dev/null 2>&1 || skip_test_ "No dmsetup installed" + +test "x$ENABLE_DEVICE_MAPPER" = xyes \ + || skip_ "no device-mapper support" ss=$sector_size_ ns=300 diff --git a/tests/t6005-dm-uuid.sh b/tests/t6005-dm-uuid.sh index a48ae72..79a51cd 100755 --- a/tests/t6005-dm-uuid.sh +++ b/tests/t6005-dm-uuid.sh @@ -21,7 +21,9 @@ require_root_ require_udevadm_settle_ -(dmsetup --help) > /dev/null 2>&1 || skip_test_ "No dmsetup installed" + +test "x$ENABLE_DEVICE_MAPPER" = xyes \ + || skip_ "no device-mapper support" ss=$sector_size_ ns=300 diff --git a/tests/t6006-dm-512b-sectors.sh b/tests/t6006-dm-512b-sectors.sh index c3045af..13eaca4 100644 --- a/tests/t6006-dm-512b-sectors.sh +++ b/tests/t6006-dm-512b-sectors.sh @@ -25,7 +25,8 @@ require_scsi_debug_module_ grep '^#define USE_BLKID 1' "$CONFIG_HEADER" > /dev/null || skip_ 'this system lacks a new-enough libblkid' -(dmsetup --help) > /dev/null 2>&1 || skip_test_ "No dmsetup installed" +test "x$ENABLE_DEVICE_MAPPER" = xyes \ + || skip_ "no device-mapper support" # Device maps names - should be random to not conflict with existing ones on # the system -- 2.21.0
