1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-07 16:59:22 +00:00

parted: change device manager check in ptest

t6001-psep should check for device manager the same way as
other ptests for parted -- look for an environment variable.

(From OE-Core rev: c724a2feaef9030718742c02cb7da5a976e6b6e4)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joe Slater
2019-06-20 15:04:21 -07:00
committed by Richard Purdie
parent a5431f3b81
commit 9d91ba408e
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,22 @@
parted: change check for device-manager
Other ptests use this method.
Upstream-Status: Submitted [bug-parted@gnu.org]
Signed-off-by: Joe Slater <joe.slater@windriver.com>
--- a/tests/t6001-psep.sh
+++ b/tests/t6001-psep.sh
@@ -19,7 +19,9 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../parted
require_root_
-(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
@@ -18,6 +18,7 @@ SRC_URI = "${GNU_MIRROR}/parted/parted-${PV}.tar.xz \
file://run-ptest \
file://Makefile \
file://0001-libparted-Use-read-only-when-probing-devices-on-linu.patch \
file://dm_check.patch \
"
SRC_URI[md5sum] = "0247b6a7b314f8edeb618159fa95f9cb"