]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa/selftest/devtool: Fix for usrmerge in DISTRO_FEATURES
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 May 2024 22:43:41 +0000 (23:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2024 08:47:06 +0000 (09:47 +0100)
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 <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/devtool.py

index c8f9534e416d1f97bc6f0e1bae1dd18fdc6c7015..882225dde345cd96a8534c31eac8f2570c60b253 100644 (file)
@@ -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