diff options
author | Brian C. Lane <bcl@redhat.com> | 2019-06-25 09:37:32 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2020-11-05 16:04:37 -0800 |
commit | 04ca93351a4e25c35562ef705b3d96c3743609ff (patch) | |
tree | 05f33d0f9049a6a3d48136dba53e390f323fc0e2 /tests | |
parent | 0eef2b04caad4a7b251ecf5e1c58ad33582da6e5 (diff) | |
download | parted-04ca93351a4e25c35562ef705b3d96c3743609ff.tar.gz |
tests: Update all the dmsetup tests to use ENABLE_DEVICE_MAPPER
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/t6004-dm-many-partitions.sh | 4 | ||||
-rwxr-xr-x | tests/t6005-dm-uuid.sh | 4 | ||||
-rw-r--r-- | 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 b4be975..636c837 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 4266747..790c23f 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 bf32135..c0de382 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 |