From patchwork Mon Sep 15 09:02:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 70163 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 09C50CAC58E for ; Mon, 15 Sep 2025 09:02:16 +0000 (UTC) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mx.groups.io with SMTP id smtpd.web10.28089.1757926931978709789 for ; Mon, 15 Sep 2025 02:02:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YMPya4wk; spf=pass (domain: gmail.com, ip: 209.85.218.54, mailfrom: skandigraun@gmail.com) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-b0b6bf0097aso228341566b.1 for ; Mon, 15 Sep 2025 02:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757926930; x=1758531730; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=960WtGgVjzqYXRXPYxoNidjwFaaBZA51/MvGPerQyLI=; b=YMPya4wkRdWn/eWycF9CNkas2+NfknnKkinkZSWGS5WtexdgI+79u7/wh5M/Xee9O1 tzKrk7BWL4qm0t5Fcis6Jeam1UctefKY8CLtJzjSrZzOTDgvEgYi2xSPj/j2ONyL9URH k+BY92AUNTu+6ih3Ja7BdceekMUior0NzFtUORggGNaP3oCYqcdT3iXByEGrD1zLYOTi bDPgkbpTFBcKMKVPgjddMIe2fs6/GBGkcrz8511afn/bKBxjahq7Gu3yyGydxO40CNy4 KkuCJROgzlJFdmE/YuvzyfxQ+DJFEG/oVhKvB+s+PNLRF0ipMUFs0w/+DLVB7QtPpMlv +6DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757926930; x=1758531730; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=960WtGgVjzqYXRXPYxoNidjwFaaBZA51/MvGPerQyLI=; b=MbHtvXfukx5EpQp+9nBqKT8pQ1WvSI38M0BzYus5JIzhUc4R64mcmfoDr0wtZsxAX4 1HKveQ4wggadsTm419AVsn+PuedkedxHkrBZNMXayrLUp6mfpQKBpiNWGLgN1qlIvk8P WYsrMSF0EjmLBK58dJ3u5RhLvmA9P0MC2md0WkqvWwDuib0URtF53oqSZ36+vq0zhRqp 1zjkq/GDA9lpCnobRwtvL6IIU7/wiqaX2LJQBQD1RQOiP1NXFiT1oFa6nzP4KJN4Dc91 qYvYEpQ71JMQ8ZTi9o4hehWkGeeaPicjM/RiOpnACaXpmk1ULSibiDGGOxuBFPk9+VWq GkSQ== X-Gm-Message-State: AOJu0Yyq+bYwLd8xvoE2KFJn74yg/6X1yjPugaJrIepB7pkCU8Qgufoq sxJG6jYszkuAgK4p9+HzMPxLzgCKqzrKK19rrj0x2l/KtVUuuSPPOYXaDSiKVg== X-Gm-Gg: ASbGnct8TcSssmVEL6hVyp6b/k/qGvVzYNE4DfC5Z6cF0YkrNz+EwxpsIoYFmUufpAf 4WuvbS8HLc+3LrwuVj+6sm+TwE+zVwLeyMhIUxzvmhn00IxyeUhYh5cVo6vOcJH4HIF/4fgNvfW fjIxvVSdA9nYCxG9naTrmWuX1Lug9qbYKDX1lfapsiXpx0v+AYxZTdE7OnnxB1LPPBF0Cmsq/VU 1bgx8dwYgXgyCDkYW1UymH0PNwOBF7vGS5gmQo7lNRo07T6n5/RiznUBtDXl+5njdj0TwMkMDvp 70ct5awYCSA36/hAW0MZNBU0Xwx+Pt1KuPa/DXx+j4npwjbSiqko6zCj47KVl23kAv4JaqhRTgG ZXU+ZISzr4pXDR2cHyqw0E9hY7lJWbYI= X-Google-Smtp-Source: AGHT+IGvFTQjhcA4atT9uMmOWnvnRm9qqb2rNOBvN+Jw2ylHd8FsTIudLNkJGX3skz6+W776N87FRA== X-Received: by 2002:a17:907:3f1f:b0:b0d:d831:6fb8 with SMTP id a640c23a62f3a-b0dd83178famr496257466b.62.1757926930106; Mon, 15 Sep 2025 02:02:10 -0700 (PDT) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b07b32f22b1sm914691566b.86.2025.09.15.02.02.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 02:02:09 -0700 (PDT) From: Gyorgy Sarvari To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/4] patchtest: apply patch in repo root Date: Mon, 15 Sep 2025 11:02:05 +0200 Message-ID: <20250915090208.2007216-1-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 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 ; Mon, 15 Sep 2025 09:02:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223391 Patchtest tries to apply the received patch on the repository, without specifying the directory, which means that the CWD is used. In case the patch modifies a content in a different folder (e.g. the script is running in ./meta, but the patch modifies ./meta-selftest), the patch will be skipped, but git still returns 0, instead of complaining. To avoid such false positives, specify the working directory for applying the patch - the top of the repodir. Signed-off-by: Gyorgy Sarvari --- meta/lib/patchtest/repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/patchtest/repo.py b/meta/lib/patchtest/repo.py index 8ec8f68a0b..2cdd6736e4 100644 --- a/meta/lib/patchtest/repo.py +++ b/meta/lib/patchtest/repo.py @@ -52,7 +52,7 @@ class PatchTestRepo(object): self._patchcanbemerged = True try: # Make sure to get the absolute path of the file - self.repo.git.execute(['git', 'apply', '--check', os.path.abspath(self.patch.path)], with_exceptions=True) + self.repo.git.execute(['git', '-C', self.repodir, 'apply', '--check', os.path.abspath(self.patch.path)], with_exceptions=True) except git.exc.GitCommandError as ce: self._patchcanbemerged = False @@ -76,7 +76,7 @@ class PatchTestRepo(object): def merge(self): if self._patchcanbemerged: - self.repo.git.execute(['git', 'am', '--keep-cr', os.path.abspath(self.patch.path)]) + self.repo.git.execute(['git', '-C', self.repodir, 'am', '--keep-cr', os.path.abspath(self.patch.path)]) self._patchmerged = True def clean(self): From patchwork Mon Sep 15 09:02:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 70162 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 051C7CAC599 for ; Mon, 15 Sep 2025 09:02:16 +0000 (UTC) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by mx.groups.io with SMTP id smtpd.web11.28243.1757926932795200078 for ; Mon, 15 Sep 2025 02:02:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LESRjUKc; spf=pass (domain: gmail.com, ip: 209.85.218.48, mailfrom: skandigraun@gmail.com) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-b03fa5c5a89so604786866b.2 for ; Mon, 15 Sep 2025 02:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757926931; x=1758531731; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=2vRWGT0f8rearr9PJi8+jE3KHYV2gHtUpKnvpKB2kTI=; b=LESRjUKctWjSS5GGMoE7aSJjx82UnPb39P1KUk2P7QJQHx6qdFRG97tMbZ3rH/tIrl 2VgfOeUh17XvHGgHOmsq1qIz0t5tG19lH2+5gcaDYCoxDrQ3r03RkF1yA9DwgNpG5Vkm xkod2ATw5MfYkd7D5FeK5z7VUDnF51307viNbVvGgLoHQFjds12PqCRu4ewnBN0f3QMS rarioYFcQkrigUhE8/QBauMEb5WQ6B2fNj7ylmuswBF0OigUT/iQiCc51OoQtmdED6mS +k8+J8+fFCLTTFc2j6jCsxOegzFKeaItTlNcMakmFkkrXM/d0xXeWm2LJdcsZSn5XJ9b MdxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757926931; x=1758531731; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2vRWGT0f8rearr9PJi8+jE3KHYV2gHtUpKnvpKB2kTI=; b=JX1oqq7RnVUl40PiEknEkmDGcuaR/hmW5yDL7Ew1J1AyxvtdugFOedIbcYPc7uUO/p Tvpt17eMQKUWzKkp5pDpVwAbplaffbRDjKhBsK90LYcE7FRncAwcK/7WEZ9x462Nh1xT 5EEMKA4Es+yIqWVjh4LOBGWebTDFiSckbVjneuvMAcYKYdY/inivuaNUfg9VWoN0A18m qEe6fnQHFQV+zdfmj33XRYXxysQiPWIDQpThxxkKWUyiItemIJjx27lPvpIOYrVBw0ds y5uxhKeqgeGrrZoBrfqiORzm24ESPn1wjNlkK54ieq32vIaMKwab1O4EctbDMZeFEgw5 jBAw== X-Gm-Message-State: AOJu0YxGZP9Y3RBoRCeXtqH8PgUG7tflblI+DzvxCVZoHqyANSQVPdLO db74hOWXyhpK8EKls4zwHC4zVdqDB9swyeo80LZqnknLAhGCI7QgBWx+hnRQqQ== X-Gm-Gg: ASbGncu/RCvcinhMxFpW2c0aWqrcB/dLTlsBMN1Ju0RABUwISsnGd9MzyyKUfLVVXOQ muGHjs8y5idQXgHW1iCRas3Ng3JQ8ferwNsrRFIa0eXCnl1q6x4Z3NA67jpQdzxFEWI71VA5wYp Wt7kCUoFLomybybLoRqYz7/eu/GvYRdp0kcz2ieE5xqqulKEhijPCK7edn2DmUttv3xBLsSGTLE yzaCl/GQGYF/dmmlzgjHBcJor2EfqlubbYc/HR6wnk15G1dVL/JVevVreZFYd35CQ+avCBzs/Xw eBUhVqtQ7PbSi9BnVtDX11NeYQG3hcxAbk3WKNkCzYK+/uE0CaJMsofjpW2xSLu/luJSAOpnQY4 1SumwW/lsbe27bGNf5UhWybrJRe9v1yc= X-Google-Smtp-Source: AGHT+IGY9smVtCahSJwK4cIuYH2teWfrcSs+9beTKDe9cyn1K3YiV2ZiA6ixtISOdy8tQ55EvcsoQQ== X-Received: by 2002:a17:906:b310:b0:b07:de2c:1268 with SMTP id a640c23a62f3a-b07de2c15famr620124566b.5.1757926930810; Mon, 15 Sep 2025 02:02:10 -0700 (PDT) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b07b32f22b1sm914691566b.86.2025.09.15.02.02.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 02:02:10 -0700 (PDT) From: Gyorgy Sarvari To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/4] patchtest: fix repo.canbemerged usage Date: Mon, 15 Sep 2025 11:02:06 +0200 Message-ID: <20250915090208.2007216-2-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250915090208.2007216-1-skandigraun@gmail.com> References: <20250915090208.2007216-1-skandigraun@gmail.com> MIME-Version: 1.0 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 ; Mon, 15 Sep 2025 09:02:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223392 Call it like a function to avoid it being interpreted as True always. Signed-off-by: Gyorgy Sarvari --- meta/lib/patchtest/tests/test_mbox.py | 2 +- meta/lib/patchtest/tests/test_metadata.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/patchtest/tests/test_mbox.py b/meta/lib/patchtest/tests/test_mbox.py index dab733ea77..714c9b30af 100644 --- a/meta/lib/patchtest/tests/test_mbox.py +++ b/meta/lib/patchtest/tests/test_mbox.py @@ -90,7 +90,7 @@ class TestMbox(base.Base): " for master branch. Target detected is %s" % PatchtestParser.repo.patch.branch ) - if not PatchtestParser.repo.canbemerged: + if not PatchtestParser.repo.canbemerged(): commithash, author, date, shortlog = headlog() self.fail( "Series does not apply on top of target branch %s" diff --git a/meta/lib/patchtest/tests/test_metadata.py b/meta/lib/patchtest/tests/test_metadata.py index 2dee80b002..63d01819e7 100644 --- a/meta/lib/patchtest/tests/test_metadata.py +++ b/meta/lib/patchtest/tests/test_metadata.py @@ -110,7 +110,7 @@ class TestMetadata(base.Metadata): def pretest_src_uri_left_files(self): # these tests just make sense on patches that can be merged - if not PatchtestParser.repo.canbemerged: + if not PatchtestParser.repo.canbemerged(): self.skip("Patch cannot be merged") if not self.modified: self.skip('No modified recipes, skipping pretest') @@ -127,7 +127,7 @@ class TestMetadata(base.Metadata): def test_src_uri_left_files(self): # these tests just make sense on patches that can be merged - if not PatchtestParser.repo.canbemerged: + if not PatchtestParser.repo.canbemerged(): self.skip("Patch cannot be merged") if not self.modified: self.skip('No modified recipes, skipping pretest') From patchwork Mon Sep 15 09:02:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 70161 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 027EDCAC597 for ; Mon, 15 Sep 2025 09:02:16 +0000 (UTC) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) by mx.groups.io with SMTP id smtpd.web11.28244.1757926933272933081 for ; Mon, 15 Sep 2025 02:02:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AqCKFrPI; spf=pass (domain: gmail.com, ip: 209.85.208.47, mailfrom: skandigraun@gmail.com) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-625e1dfc43dso6777941a12.1 for ; Mon, 15 Sep 2025 02:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757926932; x=1758531732; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=IDUzud1d7RCnk1mGlZzlLEEAh1Q5VzoB8QDB5NntN+E=; b=AqCKFrPITfN+ES2V77mK2jgGLaB85Boym+oz7UmDHMU0h3k1vLaS8i2yXm1gdSmU83 zLChd9PMoNuuprcSbu15ZMpcW/bIt5YwG5TUwU2GUQrko5A71k1QZ4b4yGcTQnG6cUpQ mNortBDe/29aYUCWzBMY2iOSrCLgpiL+myfurcU8mtaofKgHXlj6sfPdUx2n26O4Fs1K VjnuEYnSha6q5MKw/yXvOyG1/JsipBHcDqduvs1KQj6gf86K5DQdqvGMWb7VsicUsz3y f1a1sEyVli4caIyAzxY+xJylRR96391Q84qUjs4kxUrZcmGfK4vI6mXufF4inHqSe20f E3HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757926932; x=1758531732; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IDUzud1d7RCnk1mGlZzlLEEAh1Q5VzoB8QDB5NntN+E=; b=HLblm07aKWlBmX+pfV3b4M2jTx20BAou+GtRKNuQDmtxmnJETD844SKQccZXgOfa8x VOWxL0+ArBTUFQ/2RumDQ6BZSeSAimKQXR5mlE80N3DVHzQITariWvfBnpqluE3mzD9U 2YK6tEpehc0oZg+yLEoVal0zRJGnvHpyHKZsFJqwXmMdQcqKh9cm3KiyjhXY8bh+Qfoo AF1WwWFtn8uCh9BIJ65zuj2VCy4I/zNAYWTqxF/phd5op3OD82udE9YBc0ATF/m1/S72 DJ1Ya65VdtsFN7hZw21HAzxEtYCTngqbou7wGFXY25EYJZi4LFI4X8Y7smlzwFBTiMhM 2LSQ== X-Gm-Message-State: AOJu0YwTmSqJXhSQ57Er+7Ow/9iHkNbUtxWSOu5f6vAzEWbbXWjFaELT 0rahlFo0UJwIxV4XParGaoPJlneOd1vqqoSzqZVyZMFEJCwHRjEtLVy39FQHbg== X-Gm-Gg: ASbGncu4ODuucD060+RQyOTBIXsp2KiWk+zYpAh5OZDv1pxBskSZTE3n8w7zKKSyicd Wx/LkNomv4uY0llzgfongsW38zl1wL00pkxZXVOjZEzWTnC/8XqyrBqsQybn9I8Qs7knJAtFq89 XkNDVVkbHlg5xTYpvgZPmAzdBWpHB/7MY9migNkbRorRCfMIBvPOjiJK6iat3Ti8zfHx3Wmb0F5 6ndMTC21yA5d2Q8Ce8OEvj6eV6ju1QygpFy/5iCJC8mjI31j4af0c32xw3yIiqkd2nTp0ByQqi7 l7VRyxiknVn/inPMy6lsiQGd/pjFlk9fj0FbY5SGSbZX9mNqhL+RRyhGAEha3D6SsCvBEIoOzfi OIyjdG3+F2kI3xBmPDw4PKr7PyezluYw= X-Google-Smtp-Source: AGHT+IHGISc85bd9LRnAw5IvEJU0H0gNfJMEmt95tkweE9s21dMRFK7TDmbXpl+XpPq4w0NDVySbYg== X-Received: by 2002:a17:906:d54f:b0:b0a:aa7e:a193 with SMTP id a640c23a62f3a-b0aaa7ea8cemr690934666b.21.1757926931480; Mon, 15 Sep 2025 02:02:11 -0700 (PDT) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b07b32f22b1sm914691566b.86.2025.09.15.02.02.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 02:02:11 -0700 (PDT) From: Gyorgy Sarvari To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/4] patchtest: ignore patch file metadata from SRC_URI Date: Mon, 15 Sep 2025 11:02:07 +0200 Message-ID: <20250915090208.2007216-3-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250915090208.2007216-1-skandigraun@gmail.com> References: <20250915090208.2007216-1-skandigraun@gmail.com> MIME-Version: 1.0 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 ; Mon, 15 Sep 2025 09:02:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223393 The test_src_uri_left_files check prepares a list of patchfiles SRC_URI from before and after the patch is applied, looking for dangling patches. The name of the files in this list can be incorrect, in case the URI contains some extra metadata (like patchdir), because os.path.basename will use the last portion of the line being processed, which is independent from the files in question. To avoid this, try to use only the first portion of URI, before any extra metadata. Signed-off-by: Gyorgy Sarvari --- meta/lib/patchtest/tests/test_metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/patchtest/tests/test_metadata.py b/meta/lib/patchtest/tests/test_metadata.py index 63d01819e7..30da8dbe60 100644 --- a/meta/lib/patchtest/tests/test_metadata.py +++ b/meta/lib/patchtest/tests/test_metadata.py @@ -150,8 +150,8 @@ class TestMetadata(base.Metadata): "%s-%s-%s" % (self.shortid(), patchtest_patterns.metadata_src_uri, pn) ].split() - pretest_files = set([os.path.basename(patch) for patch in pretest_src_uri if patch.startswith('file://')]) - test_files = set([os.path.basename(patch) for patch in test_src_uri if patch.startswith('file://')]) + pretest_files = set([os.path.basename(patch.split(';')[0]) for patch in pretest_src_uri if patch.startswith('file://')]) + test_files = set([os.path.basename(patch.split(';')[0]) for patch in test_src_uri if patch.startswith('file://')]) # check if files were removed if len(test_files) < len(pretest_files): From patchwork Mon Sep 15 09:02:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyorgy Sarvari X-Patchwork-Id: 70164 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 195D9CAC59A for ; Mon, 15 Sep 2025 09:02:16 +0000 (UTC) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mx.groups.io with SMTP id smtpd.web10.28090.1757926933986596047 for ; Mon, 15 Sep 2025 02:02:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RNhYTKET; spf=pass (domain: gmail.com, ip: 209.85.218.45, mailfrom: skandigraun@gmail.com) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-b046fc9f359so595767366b.0 for ; Mon, 15 Sep 2025 02:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757926932; x=1758531732; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7bIzZJxK7N66D8mfbTIlHaPvKlI3GjhMAXH1YxxfKyw=; b=RNhYTKETbF2Jcq5mvIZl/BXG7j2C9k8/X2gWt1T6Zr5RKDpliMr1soY8DpDLZK3otq fLg9PF2kWo/r3CO4uXz8si+SyO9TsQk0P3Qs2CnIky3W/LBHNCKjsjNOVds5OgA12Io2 EdKw8pTNZXWvGZ3XTksKoRzEAQyJhobVrCipowFnAdnrrWl4T7vZz/c3JHt2dN6cTyy9 w7KVeJrXs+of/nlSegDB53qSbMs+66BSJvhnJ6w8M9OOYRry9h22aV5VomiYadx/9swV 6bwneg21qhgh5luqaEhJab2SLmneRSzFlAc0pQaBCU6dPFSGI6JTLnv/PlLBvMwKm/lg 5oSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757926932; x=1758531732; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7bIzZJxK7N66D8mfbTIlHaPvKlI3GjhMAXH1YxxfKyw=; b=NPQNIh/vAan7C/ZK9ovzW5JgH9HbjgaXm72lRHp9W+QCRq4IHajUxA8fcdlMcqnNJm qh0QKMqCwL9Yecg70a9PYz0jJ3sd4MEmrd7YkewYYGHQJzwXkJmDctXPkdElqKy2XJbN 10KWY4ftutWmSHxOIJvJa7903n6JpYThiswYcJrY+FwnFz/hH7HksefDqDbqtHi8RByW RlvFmCtpQ5dFDN6ETsPEXU7AKzg4Vv8y3i8hzZi/wLXZbeq+K9DUKP757Z7TRx685hJ3 i9PUhgnd8MWtWtEJr3rrFoAwb+FN+XhzhLzENB/8RZBMmqo+dTGgH6nzo9uEaDpcZz9V U9Zw== X-Gm-Message-State: AOJu0YzpROWSsKNqmjsd4ku103cFbVogHAX362eLfywujev7U5EX898F NTgHaHq5vq48nqHdMKFYaawRR5RDLXawGkEuRxTD15b7cHHhvsqZBmwdzuXIow== X-Gm-Gg: ASbGncuq4HN98rl2Moub05WC4OBXftrh5d6oauP5KqkPV1Otegve8720exIqOuUfyl+ FtMIoFsR3/aaroWrbTEo2qF3TjmvUjqHUfWb9D8R8xgSHelPYtThDFnwRMoz0CYc3H26acjUWt4 eqTRL45bKRBKoOKMXPlkpkYZeOu6hf0rmKmb10bx5i5WXz9mzgP0uFaaq3qdnlljEOw0Td4/p8X 6avvtQoTbMl25s9FhI71Dy+tvt/lU7lsN2xxSZ1dP4Me1zyZzZDgW+nznfqvGLgDkVWKh19tcv1 t2UvXCVoM3CEjgbA20BLSgLPx5IXGZeEVY+bXklyb5clCbJAx8o1ZHFyfuNJOUIy4eXFNSY474l IEVpl9iJfV4GqjsfrdNwT X-Google-Smtp-Source: AGHT+IFBAqykcjpO73bQM8tk9oZ7ui0y0xLDOINQRx13H3qCx22pCOu+IjgU0Fsb91G/88fy4GhraQ== X-Received: by 2002:a17:907:9710:b0:b0c:6cae:51f5 with SMTP id a640c23a62f3a-b0c6cae68b5mr658323666b.43.1757926932268; Mon, 15 Sep 2025 02:02:12 -0700 (PDT) Received: from desktop ([51.154.145.205]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b07b32f22b1sm914691566b.86.2025.09.15.02.02.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Sep 2025 02:02:11 -0700 (PDT) From: Gyorgy Sarvari To: openembedded-core@lists.openembedded.org Subject: [PATCH 4/4] patchtest: update testdata for selftest Date: Mon, 15 Sep 2025 11:02:08 +0200 Message-ID: <20250915090208.2007216-4-skandigraun@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250915090208.2007216-1-skandigraun@gmail.com> References: <20250915090208.2007216-1-skandigraun@gmail.com> MIME-Version: 1.0 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 ; Mon, 15 Sep 2025 09:02:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/223394 The test-patch for test_src_uri_left_files selftest got out of date. This patch updates it to make it apply on the repo again. Signed-off-by: Gyorgy Sarvari --- .../files/TestMetadata.test_src_uri_left_files.fail | 9 +++------ .../files/TestMetadata.test_src_uri_left_files.pass | 7 ++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.fail b/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.fail index 0a402d0a3e..13e1a75a66 100644 --- a/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.fail +++ b/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.fail @@ -11,7 +11,7 @@ Signed-off-by: Trevor Gamblin 1 file changed, 2 deletions(-) diff --git a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb -index 2dc352d479e..e95270adaeb 100644 +index 0ffe7308ba..bd8f4245a2 100644 --- a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb +++ b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb @@ -3,8 +3,6 @@ SECTION = "examples" @@ -20,9 +20,6 @@ index 2dc352d479e..e95270adaeb 100644 -SRC_URI = "file://helloworld.c" - - S = "${WORKDIR}/sources" - UNPACKDIR = "${S}" + S = "${UNPACKDIR}" --- -2.45.1 - + do_compile() { diff --git a/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.pass b/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.pass index a675c028d0..c06580f054 100644 --- a/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.pass +++ b/meta/lib/patchtest/selftest/files/TestMetadata.test_src_uri_left_files.pass @@ -36,9 +36,6 @@ index 2dc352d479e..e95270adaeb 100644 -SRC_URI = "file://helloworld.c" - - S = "${WORKDIR}/sources" - UNPACKDIR = "${S}" + S = "${UNPACKDIR}" --- -2.45.1 - + do_compile() {