From: Ross Burton Date: Sat, 10 May 2025 08:43:38 +0000 (+0100) Subject: oeqa/sdkext/context: align hasHostPackage with parent class X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfd1e0a8c8d294510fca1a800ab27e4f1e2292bf;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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") Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/sdkext/context.py b/meta/lib/oeqa/sdkext/context.py index 2ac2bf6ff73..2da57e2ccff 100644 --- a/meta/lib/oeqa/sdkext/context.py +++ b/meta/lib/oeqa/sdkext/context.py @@ -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