From cfd1e0a8c8d294510fca1a800ab27e4f1e2292bf Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Sat, 10 May 2025 09:43:38 +0100 Subject: [PATCH] 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 --- meta/lib/oeqa/sdkext/context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3