parted: change device manager check in ptest
PATCH 1/1 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.
--- meta/recipes-extended/parted/files/dm_check.patch | 22 ++++++++++++++++++++++ meta/recipes-extended/parted/parted_3.2.bb | 1 + 2 files changed, 23 insertions(+) create mode 100644 meta/recipes-extended/parted/files/dm_check.patch
meta/recipes-extended/parted/files/dm_check.patch new file +22 -0
@@ -0,0 +1,22 @@ +parted: change check for device-manager + +Other ptests use this method. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]> + + +--- 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
meta/recipes-extended/parted/parted_3.2.bb +1 -0
@@ -19,6 +19,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"
Signature · 1 line
2.7.4
Quoted 18 lines · Joe Slater
t6001-psep should check for device manager the same way as other ptests for parted -- look for an environment variable.
Signed-off-by Joe Slater <[email protected]>--- meta/recipes-extended/parted/files/dm_check.patch | 22 ++++++++++++++++++++++ meta/recipes-extended/parted/parted_3.2.bb | 1 + 2 files changed, 23 insertions(+) create mode 100644 meta/recipes-extended/parted/files/dm_check.patchmeta/recipes-extended/parted/files/dm_check.patch new file +0
-0
meta/recipes-extended/parted/files/dm_check.patch line 7
Quoted 7 lines
meta/recipes-extended/parted/files/dm_check.patch new file +7
-0@@ -0,0 +1,22 @@ +parted: change check for device-manager + +Other ptests use this method. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]>
This sounds like something which should be an obvious/easy fix for upstream, any chance we can submit it?
I'm hoping we can get our patch load down a bit so pushing obvious things to upstream is good...
Cheers,
Richard
I will send a patch upstream. Joe
________________________________________
From: Richard Purdie [[email protected]]
Sent: Wednesday, June 19, 2019 2:39 PM
To: Slater, Joseph; [email protected]
Subject: Re: [OE-core] [oe-core][PATCH 1/1] parted: change device manager check in ptest
Quoted 18 lines · Joe Slater
t6001-psep should check for device manager the same way as other ptests for parted -- look for an environment variable.
Signed-off-by Joe Slater <[email protected]>--- meta/recipes-extended/parted/files/dm_check.patch | 22 ++++++++++++++++++++++ meta/recipes-extended/parted/parted_3.2.bb | 1 + 2 files changed, 23 insertions(+) create mode 100644 meta/recipes-extended/parted/files/dm_check.patchmeta/recipes-extended/parted/files/dm_check.patch new file +0
-0
meta/recipes-extended/parted/files/dm_check.patch line 7
Quoted 7 lines
meta/recipes-extended/parted/files/dm_check.patch new file +7
-0@@ -0,0 +1,22 @@ +parted: change check for device-manager + +Other ptests use this method. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]>
This sounds like something which should be an obvious/easy fix for upstream, any chance we can submit it?
I'm hoping we can get our patch load down a bit so pushing obvious things to upstream is good...
Cheers,
Richard
Hm, I searched for parted development, and it looks like the last release was five years ago. We could have a long wait for this ptest fix.
Joe
________________________________________
From: [email protected] [[email protected]] on behalf of Slater, Joseph [[email protected]]
Sent: Wednesday, June 19, 2019 2:56 PM
To: Richard Purdie; [email protected]
Subject: Re: [OE-core] [oe-core][PATCH 1/1] parted: change device manager check in ptest
I will send a patch upstream. Joe
________________________________________
From: Richard Purdie [[email protected]]
Sent: Wednesday, June 19, 2019 2:39 PM
To: Slater, Joseph; [email protected]
Subject: Re: [OE-core] [oe-core][PATCH 1/1] parted: change device manager check in ptest
Quoted 18 lines · Joe Slater
t6001-psep should check for device manager the same way as other ptests for parted -- look for an environment variable.
Signed-off-by Joe Slater <[email protected]>--- meta/recipes-extended/parted/files/dm_check.patch | 22 ++++++++++++++++++++++ meta/recipes-extended/parted/parted_3.2.bb | 1 + 2 files changed, 23 insertions(+) create mode 100644 meta/recipes-extended/parted/files/dm_check.patchmeta/recipes-extended/parted/files/dm_check.patch new file +0
-0
meta/recipes-extended/parted/files/dm_check.patch line 7
Quoted 7 lines
meta/recipes-extended/parted/files/dm_check.patch new file +7
-0@@ -0,0 +1,22 @@ +parted: change check for device-manager + +Other ptests use this method. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]>
This sounds like something which should be an obvious/easy fix for upstream, any chance we can submit it?
I'm hoping we can get our patch load down a bit so pushing obvious things to upstream is good...
Cheers,
Richard
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Joseph
Hm, I searched for parted development, and it looks like the last release was five years ago. We could have a long wait for this ptest fix.
They do still appear to be merging patches though:
http://git.savannah.gnu.org/cgit/parted.git/log/
so at least worth sending and then we can mark it as Submitted.
Cheers,
Richard