On Tue, May 7, 2024 at 3:47 PM Richard Purdie via lists.openembedded.org <[email protected]> wrote:
> 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(+) > > diff --git a/meta/lib/oeqa/selftest/cases/devtool.py > b/meta/lib/oeqa/selftest/cases/devtool.py > index c8f9534e416..882225dde34 100644 > --- a/meta/lib/oeqa/selftest/cases/devtool.py > +++ b/meta/lib/oeqa/selftest/cases/devtool.py > @@ -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 > > # Build an image to run > -- > 2.40.1 > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#199110): https://lists.openembedded.org/g/openembedded-core/message/199110 Mute This Topic: https://lists.openembedded.org/mt/105970675/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
