]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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)
committerSteve Sakoman <steve@sakoman.com>
Wed, 3 Jul 2024 14:09:47 +0000 (07:09 -0700)
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>
(cherry picked from commit afa211746a2aa1993a54cc5a5e1937679341da8e)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/devtool.py

index 44a2a50f2e12b8b6075b44266aa35f5e3b91c3b8..fc0890611740ed2ea8bbbf7f32bab604fad2abed 100644 (file)
@@ -1792,6 +1792,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