mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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:
committed by
Richard Purdie
parent
16ca89f0bb
commit
4ce977f378
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user