Files
poky/meta/lib/oeqa/sdkext/context.py
Ross Burton 4ce977f378 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>
2025-05-12 22:01:55 +01:00

33 lines
1.1 KiB
Python

#
# Copyright (C) 2016 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
import os
from oeqa.sdk.context import OESDKTestContext, OESDKTestContextExecutor
class OESDKExtTestContext(OESDKTestContext):
esdk_files_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "files")
# FIXME - We really need to do better mapping of names here, this at
# least allows some tests to run
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, regex)
class OESDKExtTestContextExecutor(OESDKTestContextExecutor):
_context_class = OESDKExtTestContext
name = 'esdk'
help = 'esdk test component'
description = 'executes esdk tests'
default_cases = OESDKTestContextExecutor.default_cases + \
[os.path.join(os.path.abspath(os.path.dirname(__file__)), 'cases')]
default_test_data = None
_executor_class = OESDKExtTestContextExecutor