oeqa/selftest/devtool: Fix for usrmerge in DISTRO_FEATURES
PATCH 1/1 oeqa/selftest/devtool: Fix for usrmerge in DISTRO_FEATURES
If usrmerge is in DISTRO_FEATURES, assumptions in one of the tests would fail. Improve the test so it works in both cases.
--- meta/lib/oeqa/selftest/cases/devtool.py | 2 ++ 1 file changed, 2 insertions(+)
meta/lib/oeqa/selftest/cases/devtool.py +2 -0
@@ -1773,6 +1773,8 @@ class DevtoolExtractTests(DevtoolBase): # Definitions testrecipe = 'mdadm' testfile = '/sbin/mdadm' + if "usrmerge" in get_bb_var('DISTRO_FEATURES'): + testfile = '/usr/sbin/mdadm' testimage = 'oe-selftest-image' testcommand = '/sbin/mdadm --help' # Build an image to run
Signature · 1 line
2.40.1
Quoted 14 lines · Richard Purdie via lists.openembedded.org
If usrmerge is in
DISTRO_FEATURES, assumptions in one of the tests would fail. Improve the test so it works in both cases.Signed-off-by Richard Purdie <[email protected]>--- meta/lib/oeqa/selftest/cases/devtool.py | 2 ++ 1 file changed, 2 insertions(+)meta/lib/oeqa/selftest/cases/devtool.py +0
-0
meta/lib/oeqa/selftest/cases/devtool.py class DevtoolExtractTests(DevtoolBase): · line 1779
Quoted 7 lines
meta/lib/oeqa/selftest/cases/devtool.py +2
-0@@ -1773,6 +1773,8 @@ class DevtoolExtractTests(DevtoolBase): # Definitions testrecipe = 'mdadm' testfile = '/sbin/mdadm' + if "usrmerge" in get_bb_var('DISTRO_FEATURES'): + testfile = '/usr/sbin/mdadm' testimage = 'oe-selftest-image' testcommand = '/sbin/mdadm --help'
Won’t this line also need to be covered as well ?
I wonder if these paths need to be absolute or can they be searched in standard paths
Quoted 17 lines
meta/lib/oeqa/selftest/cases/devtool.py +0
-1# Build an image to run --2.40.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#199109):
https://lists.openembedded.org/g/openembedded-core/message/199109
Mute This Topic: https://lists.openembedded.org/mt/105970675/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 25 lines · Khem Raj
Quoted 20 lines · Richard Purdie via lists.openembedded.org
If usrmerge is in
DISTRO_FEATURES, assumptions in one of the tests would
fail. Improve the test so it works in both cases.Signed-off-by Richard Purdie <[email protected]>---
meta/lib/oeqa/selftest/cases/devtool.py | 2 ++1 file changed, 2 insertions(+)meta/lib/oeqa/selftest/cases/devtool.py +0
-0@@ -1773,6 +1773,8 @@ class DevtoolExtractTests(DevtoolBase): # Definitionstestrecipe = 'mdadm'
testfile = '/sbin/mdadm'
+ if "usrmerge" inget_bb_var('DISTRO_FEATURES'):
+ testfile = '/usr/sbin/mdadm'
Quoted 9 lines
Quoted 3 lines
testimage = 'oe-selftest-image'
testcommand = '/sbin/mdadm--help'Won’t this line also need to be covered as well ?
I wonder if these paths need to be absolute or can they be searched in standard paths
Good question. I checked and it works due to the symlink present but it would probably look better if that is tweaked as well.
Cheers,
Richard