[parted-devel] [PATCH 1/2] t6001-psep: modify device manage support detection

Brian C. Lane bcl at redhat.com
Tue Jun 25 18:25:07 BST 2019


From: Joe Slater <joe.slater at windriver.com>

Use the method other tests use -- test an environment variable.

Signed-off-by: Joe Slater <joe.slater at windriver.com>
Signed-off-by: Brian C. Lane <bcl at redhat.com>
---
 tests/t6001-psep.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/t6001-psep.sh b/tests/t6001-psep.sh
index 2985cf5..bd1e3a3 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
-- 
2.21.0




More information about the parted-devel mailing list