summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoe Slater <joe.slater@windriver.com>2019-06-20 14:33:04 -0700
committerBrian C. Lane <bcl@redhat.com>2020-11-05 16:04:37 -0800
commit0eef2b04caad4a7b251ecf5e1c58ad33582da6e5 (patch)
treee1f8d1a75aca28a8ea9fdf1ff67d72473758add1 /tests
parent059200d50beb259c54469ae65f2d034af48ff849 (diff)
downloadparted-0eef2b04caad4a7b251ecf5e1c58ad33582da6e5.tar.gz
t6001-psep: modify device manage support detection
Use the method other tests use -- test an environment variable. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/t6001-psep.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/t6001-psep.sh b/tests/t6001-psep.sh
index e350bd2..73f2d1c 100644
--- a/tests/t6001-psep.sh
+++ b/tests/t6001-psep.sh
@@ -21,7 +21,8 @@
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"
# Device maps names - should be random to not conflict with existing ones on
# the system