From patchwork Wed Jul 23 06:26:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Marko, Peter" X-Patchwork-Id: 67319 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0E1BC83F17 for ; Wed, 23 Jul 2025 06:27:04 +0000 (UTC) Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) by mx.groups.io with SMTP id smtpd.web10.7623.1753252022519321915 for ; Tue, 22 Jul 2025 23:27:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=gN8Dh5Sz; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.225, mailfrom: fm-256628-202507230626570aa3467d53c305044a-b4hatl@rts-flowmailer.siemens.com) Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 202507230626570aa3467d53c305044a for ; Wed, 23 Jul 2025 08:26:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=BWldrerceMfu80Y4bZigOjVBPbQ+P9ypkZo+6llxYIc=; b=gN8Dh5SznGAFbtDZ271Jvtdqnsq96GJOhh5jsExRC/Z8XykZjlNOCONFM87RthJxyBAEl5 0641bT9P/nRAe2NxyYIRPYSkMCbWdKLECG5yqkkEuOjpBF/m+blnwWhtq9o3bddvai2yJUaw uW/TGh6TOmgQHhppSjqlg0hS0lDOyH4m4hVuEWUjPPcGUOURoLuG12TsjuA/VLCE/nEtEk6m aVVnkRNdowSX/Fdv2FEiwLYeRBC6O3NtFhmyEFY2IEEXXu7ADZQLk9jxNSd7tDWjLzKsw6GP v9j3abjS3Mkh5xUgTADicUEreVBDj7ECZplK2daFyfFO/Q3Pxn42oiZw==; From: Peter Marko To: openembedded-core@lists.openembedded.org Cc: Peter Marko , Ross Burton , Khem Raj Subject: [OE-core][PATCH] oeqa: do not fail when sdk package is not available Date: Wed, 23 Jul 2025 08:26:16 +0200 Message-Id: <20250723062616.101590-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 23 Jul 2025 06:27:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/220792 From: Peter Marko 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. Signed-off-by: Peter Marko Cc: Ross Burton Cc: Khem Raj --- meta/lib/oeqa/sdk/case.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/sdk/case.py b/meta/lib/oeqa/sdk/case.py index 1fd3b3b569..002eed271d 100644 --- a/meta/lib/oeqa/sdk/case.py +++ b/meta/lib/oeqa/sdk/case.py @@ -44,7 +44,10 @@ class OESDKTestCase(OETestCase): if isinstance(self.tc, OESDKExtTestContext): recipe = (recipe or packages[0]) + "-native" print("Trying to install %s..." % recipe) - self._run('devtool sdk-install %s' % recipe) + try: + self._run('devtool sdk-install %s' % recipe) + except: + raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages))) else: raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages)))