summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-07-31 21:27:19 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-04 18:04:04 +0100
commit2239c2c91ab35c67ccd95afe057350037f7d0e59 (patch)
tree0773ffeed5046bd50412dc0f1df579f75645c073 /meta/lib/oeqa
parent1987d7943e7d411218fc11f97cd3c4323c2b419c (diff)
downloadpoky-2239c2c91ab35c67ccd95afe057350037f7d0e59.tar.gz
oeqa: do not fail when sdk package is not available
Prior to commits: * 11277efd057685558a744e98082b5709e849dd2a * d0e8b83d05957b1f22d08582e364afa4b522801e the tests were skipped if package was not available. Now the code calls function ensure_host_package which says "try to sdk-install missing dependencies", however in fact for sdkext it causes a failure if the installation is not available. Since maturin is not installed in any image, it cannot be installed unless it's downloaded from sstate-cache mirror populated by a world build. These builds are however now not done for powerpc and mips. IT also does not work in local builds without sstate-cache mirror. Fix this by skipping the test if the package cannot be installed to match the original behavior before those commits. (From OE-Core rev: bd2096c89a4a00927a52d07145aad528dc86b81c) Signed-off-by: Peter Marko <peter.marko@siemens.com> Cc: Ross Burton <ross.burton@arm.com> Cc: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/sdk/case.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/case.py b/meta/lib/oeqa/sdk/case.py
index 1fd3b3b569..03cfde88ff 100644
--- a/meta/lib/oeqa/sdk/case.py
+++ b/meta/lib/oeqa/sdk/case.py
@@ -44,7 +44,10 @@ class OESDKTestCase(OETestCase):
44 if isinstance(self.tc, OESDKExtTestContext): 44 if isinstance(self.tc, OESDKExtTestContext):
45 recipe = (recipe or packages[0]) + "-native" 45 recipe = (recipe or packages[0]) + "-native"
46 print("Trying to install %s..." % recipe) 46 print("Trying to install %s..." % recipe)
47 self._run('devtool sdk-install %s' % recipe) 47 try:
48 self._run('devtool sdk-install %s' % recipe)
49 except subprocess.CalledProcessError:
50 raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages)))
48 else: 51 else:
49 raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages))) 52 raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages)))
50 53