]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/sdk/context: fix multilib handling bug in hasTargetPackage
authorRoss Burton <ross.burton@arm.com>
Sat, 10 May 2025 08:43:37 +0000 (09:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 May 2025 09:52:52 +0000 (10:52 +0100)
commit2abb146dd81f677176923ebb3188f5b7c034ed68
treeae528c5dc87c66219775bac0d396417cd124adcc
parentb293c44f87b6a52e4239ce14066514e87d9b08d0
oeqa/sdk/context: fix multilib handling bug in hasTargetPackage

hasTargetPackage has some logic to automatically multilibify package
names if needed (for example, so that gtk+3 becomes lib32-gtk+3).

Due to a logic bug if multilib was True but there were no multilibs
configured then this prepended "-" to the package name, which won't
exist.  This resulted in tests being skipped as the dependent packages
are not installed.

Solve this by only prepending to the package name if requested and if a
multilib environment has been detected.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/sdk/context.py