oeqa/sdkext/context: align hasHostPackage with parent class

This subclass overrides hasHostPackage() but back in 2018[1] the parent
class's method gained a regex argument.

[1] oe-core 595e9922cdb ("oeqa/sdk: fixes related to hasPackage semantics")

(From OE-Core rev: cfd1e0a8c8d294510fca1a800ab27e4f1e2292bf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2025-05-10 09:43:38 +01:00
committed by Richard Purdie
parent 16ca89f0bb
commit 4ce977f378

View File

@@ -12,11 +12,11 @@ class OESDKExtTestContext(OESDKTestContext):
# FIXME - We really need to do better mapping of names here, this at
# least allows some tests to run
def hasHostPackage(self, pkg):
def hasHostPackage(self, pkg, regex=False):
# We force a toolchain to be installed into the eSDK even if its minimal
if pkg.startswith("packagegroup-cross-canadian-"):
return True
return self._hasPackage(self.host_pkg_manifest, pkg)
return self._hasPackage(self.host_pkg_manifest, pkg, regex)
class OESDKExtTestContextExecutor(OESDKTestContextExecutor):
_context_class = OESDKExtTestContext