From patchwork Fri Dec 4 17:41:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107350 Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2720.1796406073737421067 for ; Fri, 04 Dec 2026 09:41:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=cGQpXB26; spf=pass (domain: baylibre.com, ip: 209.85.221.171, mailfrom: tgamblin@baylibre.com) Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-5ee2ad94713so699457e0c.0 for ; Fri, 04 Dec 2026 09:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406073; x=1797010873; 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:content-type; bh=JBQoZKgpGbK+aUsQCtv1FWfZYFzl6igZYZ6VMfMdP8s=; b=cGQpXB264nk7z1ZC4dWnQSbk22YbfuB0r3Z/gewx9c0H1V3YGKCOQPxWH63lRjHKaY e1Jv4nuJk+yc6DuEbl+dmueWWuBKXnNLmBkEZSJtNVEJQj29b0nIkAwZwHvg3lNmq4qX DXP6Blx//HwWq9eSyhibBS20jK+8ILVBqlUkz/kNNjc7i2/l5+32JAL0x2L7SQJzBH+R UV0frGBsaB5e5U8VMDNuhKn6ejm3di86uBEZQz/a+V5nfZ/nS+nZO5m3NpIaazCRkJE+ T+9pyEj7DmkltOL6MzRXajiww2+JP/iCSn9R6l0ckSQohW31XsDxaUUlMV7vsz8CA19x MQqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406073; x=1797010873; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=JBQoZKgpGbK+aUsQCtv1FWfZYFzl6igZYZ6VMfMdP8s=; b=FT9+TjjVr8XI5oCJbjOeAKBMw4AiqSf85apmlztPcZ1t+3fXUKhUagGGRa3dSBNgUM wJs5q7VlIIMd+8BUbzDPIHFGLFi1ELK1Jfh5LCQAxtWeLkNXOSO/bJHjXCTqSGv80VRk wqu25LqYllUq3hoNgkaQFHM5R9rroX2yjQBKk8CPx6pKXsuvzfOiKjWvfgHYAxzJxygg O9G8oIQYzxY+H6dFxbmT6WpW/qXLj0kXpH3w3+IGrXUrzYmFKAmcstydfo+UmYbjg/2B E0So4xbPVbhjk+Nwee+cy88HYrZMPoX959tyUJKxnyABO71Q+of2EJoZBOzXlJ4jwuj5 2PGQ== X-Gm-Message-State: APuU4Z84NTIE+7Xm+yr4MxmO+Jkj/zqym05leAEmWr4KbBdzQpQUSHRT aGkr8KypiH77HystMVThYA417yMUDnPg2Q3tlic2d75DQHWM6ydubMjN5GaHGRJ+9UXk+LwTkHl x5t75rbw= X-Gm-Gg: AZFdTZemMSsqKozycpZsBH2oTpt0my5KdKMEgl6zHsR+0XseboA5MeGoxj7EpKnykn6 VEhJL5f0EU8P7mRVcUpc4mq4v7jae3YOCrlyRlKYGHNftn+l9Cy4XxeT9ntk696wjyvlhOA4pm1 oOpTA9kVSi+ocbcn39C3YURqwchsqkm17PofVewK1kqh3xIvWcGNytXc0rlycQaBn5CQNtPgOgM cx9pgyvX24v8HNhoqLaodxtY4TDm1SK4i2YEFQ49d7egEsFlW7tZivlMhWpUgjtnRDV3MODsbdx DUpZz8hKvh/0ktkQEzbrXRaoXH/hTfLVCc+K8wN6yELLQRh3dgE5bkf+VvXgJwmzMM0GkxekCC1 YVXTefOdxqhXkcJthHJp71Qm5e6HbhRmLMK1EAU22Gd3dNPOeIL2hugsFOIhcvBYnplBx4tZmkc D5GZRxlDC28N/uwxaFXJOpg73oBgwxZXYvHGe3NWqIYxkQezPQHudP4Xunrf/9GYhzchUXtHOev w/sL8kMGMpC/T/TgXPPoyssKnuwIn8nXJQpT5zpfFfR5OPNYA7QmMShOXU+udxbqoEZcLtwFPth mXybjb5JGsSqnPCJTeQC2mWHOXfSxJ5F75sIfO6nDRkW78ZHgWVUowNGXDgEreUmEpoZkba60pM b24PNtAFI6Q== X-Received: by 2002:a05:6122:861c:b0:5f0:2090:e580 with SMTP id 71dfb90a1353d-5f02090ee0amr1688273e0c.21.1796406072681; Fri, 04 Dec 2026 09:41:12 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:12 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 1/6] scripts/patchtest: print failure data with results Date: Fri, 4 Dec 2026 12:41:02 -0500 Message-ID: <20261204174107.1295971-2-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 17:41:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252009 Print the data passed with each failure, such as the suggested mailing list from test_target_mailing_list, along with the test result. addFailure() adds ': ' after each key, so drop the trailing colon from the "Patch's path" key in test_mbox.py to avoid doubling it. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin --- meta/lib/patchtest/tests/test_mbox.py | 4 ++-- scripts/patchtest | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/meta/lib/patchtest/tests/test_mbox.py b/meta/lib/patchtest/tests/test_mbox.py index 3db21d2104..0660e7aced 100644 --- a/meta/lib/patchtest/tests/test_mbox.py +++ b/meta/lib/patchtest/tests/test_mbox.py @@ -123,14 +123,14 @@ class TestMbox(base.Base): if base_path in project.paths: self.fail('Series sent to the wrong mailing list or some patches from the series correspond to different mailing lists', data=[('Suggested ML', '%s [%s]' % (project.listemail, project.gitrepo)), - ('Patch\'s path:', patch.path)]) + ('Patch\'s path', patch.path)]) # check for poky's scripts code if base_path.startswith('scripts'): for poky_file in self.poky_scripts: if patch.path.startswith(poky_file): self.fail('Series sent to the wrong mailing list or some patches from the series correspond to different mailing lists', - data=[('Suggested ML', '%s [%s]' % (self.poky.listemail, self.poky.gitrepo)),('Patch\'s path:', patch.path)]) + data=[('Suggested ML', '%s [%s]' % (self.poky.listemail, self.poky.gitrepo)),('Patch\'s path', patch.path)]) def test_mbox_format(self): if self.unidiff_parse_error: diff --git a/scripts/patchtest b/scripts/patchtest index 17a3cebb48..86271a40c1 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -89,8 +89,11 @@ def getResult(patch, mergepatch, logfile=None): def addFailure(self, test, err): self.test_failure = True desc = _format_test_description(test) - issue = json.loads(str(err[1]))["issue"] + parsed = json.loads(str(err[1])) + issue = parsed["issue"] _write_patchtest_result('{}: {}: {} ({})'.format(self.fail, desc, issue, test.id()), logfile) + for key, val in parsed.get('data') or []: + _write_patchtest_result(' {}: {}'.format(key, val), logfile) def addSuccess(self, test): desc = _format_test_description(test) From patchwork Fri Dec 4 17:41:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107348 Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2607.1796406075215563072 for ; Fri, 04 Dec 2026 09:41:15 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=jVDa/+VK; spf=pass (domain: baylibre.com, ip: 209.85.222.43, mailfrom: tgamblin@baylibre.com) Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-98c7798ce74so280634241.1 for ; Fri, 04 Dec 2026 09:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406074; x=1797010874; 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:content-type; bh=M7MzheD5WPbhzXzryKfVs6SZChpiMtLd5Fqu4OzBX6U=; b=jVDa/+VKBMahanGN3ZSehGVjVd7LLBn+e5bUzn2bWd/u52VglqTn9ni89tHBh0dgtZ nxV/w0OJk/6IGxU2/HOXp3MvmZPRHCFZQgqbsPcJqd+sCiIXEqimX6S00Pkcj79pD4AO pIi2y5mBMMR2/z6TZ8fSEFOiYUZgVJUqodWqyqaeQeCbS8siV9B/n8XcMkM9Ko+tlg8A 8rSLdvNiVGMRUEXrmpdjRv2GEzBgqDhdZW02BSxVDxWOlUFKgQZrBE1Os6xLQwrLXDv4 efsACe45Q2IYOM56efjPPme7GQBkebORtkDdxa67m9f2ZEcS9/3zxYPE8YY+LIWnepRj dvRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406074; x=1797010874; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=M7MzheD5WPbhzXzryKfVs6SZChpiMtLd5Fqu4OzBX6U=; b=gToq0P0HnshphoFouQZl1Pkmi/TLiv/1fiAT+pbTNVY6wfz3C/zwKbH3LBtBRJOFS3 5TEZXW52qmjJaAHkS5rMyhiCZ4uVgS58aHlj1ak9jhfKy5OHU3cV53grGyIZy/D1ZmPW Z/YvKiiT4qXIoZq6PtlWiLpoQta300qTh4bVjXxsdtSvEMlSMUje3mi7GJ0+H9AaLQQS TdxlCiatltXTdw2Alt9xVHir2dY4koNQttdHePlmhkiZ+XmEniKUITFc/w7tPrmfGu2g sTdHuGL+bLBhmaRfHE1OiU5VyqPOZQJ5+ZznSAldhEqR3uIXp//nDVnTPefzk4VBL11M AGXQ== X-Gm-Message-State: AB4q+uHJrRLIMVJ1yAlY4s4QTy8f/fZhrxWPfyRG4GJa9qhP5GOrc4rd IWID92tg2k136My0yp9DCygEW+XHHvNeEQSFVrMW2t5Cf56reMBGhot7F6c2IeiGKG/1LFsm0Qr XoDmTgkc= X-Gm-Gg: AZFdTZffflOkpBz2uISAlRaA4wsxz130hESykEGbQu18Pz2Vro0OYrMcuWxsBQmRrZb dIsE08An0ZzBQ1jOA6+LHpCOKXmpYkNh4LM27zH23t/gN8qqhITvBOkLNklATgfltolAf5UrEi9 hUJqrahzGKsLFyAQIaP2nvdD+1v/7XvCa/7dXNN8a+qWhu/+AkyJBYUQysGRc/tQawAfH9mRXLV T4GFETxDN/c0D2sCF80otFmEigu2jrazrx0Obvx2h2OPTgC7IDV/q/uNAa47TcVgRrsGGVdL3VR gyxTRw9zhmioDzuonTWe8h2st76U0YvugCQjD5TmdE05LshGs7h49dAFeNYTTLr+pJ+WoE8MI9H RJVJk1CGyWcallM134bXyPrAoPvj/6Mf6fe7LHSDmhAYl7NCbRbFxeGPgUy/0wkxWXxzX5R4psK 8iQgEQrg0cXXim0vA72upQIoFPFpLwMa9OuLcZWoCqHYokbBW+/7hbKLd2SvX4PfCEFUgi9eZl/ 8qXbtykHxeMBO3vRe6uQzjS8VUO+v93cvxAZNQk6+caRPdaPhE661RWEcwl6NygCulCrs94W0rK P4YOc4CDhjyxqy0wdd2wWB/O9mjMcdzlud+bctmLPx06Q5wbTVaFxQZYh7kQJbx9I61AntIT5TX MHbkefq4kmEGxXYI8Tv4RuPFsaz5uM+s= X-Received: by 2002:a05:6122:1821:b0:5c9:a60b:e5c0 with SMTP id 71dfb90a1353d-5f01d0c8281mr2589040e0c.16.1796406074198; Fri, 04 Dec 2026 09:41:14 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:13 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 2/6] scripts/patchtest: don't stop at an empty patch in a directory Date: Fri, 4 Dec 2026 12:41:03 -0500 Message-ID: <20261204174107.1295971-3-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 17:41:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252010 When given a directory, patchtest returned as soon as it found an empty file, so none of the patches after it were tested. Report the empty patch and carry on with the rest, still returning a failure at the end. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin --- scripts/patchtest | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/patchtest b/scripts/patchtest index 86271a40c1..4bed3c6d88 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -209,9 +209,9 @@ def main(): break if os.path.getsize(patch) == 0: - logger.error('patchtest: patch is empty') - signal.signal(signal.SIGINT, previous_sigint) - return 1 + logger.error('patchtest: patch %s is empty' % patch) + ret = 1 + continue logger.info('Testing patch %s' % patch) From patchwork Fri Dec 4 17:41:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107349 Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2608.1796406078335529031 for ; Fri, 04 Dec 2026 09:41:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=O+jwaeH3; spf=pass (domain: baylibre.com, ip: 209.85.221.182, mailfrom: tgamblin@baylibre.com) Received: by mail-vk1-f182.google.com with SMTP id 71dfb90a1353d-5f0102a9f51so620317e0c.3 for ; Fri, 04 Dec 2026 09:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406077; x=1797010877; 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:content-type; bh=/8UBbDswYma5LlXUJPvSuBXVc3WkKeRe+DCMkWxtE0o=; b=O+jwaeH3dny7mzaGg1g+fecowO/9hpsXJ408frebf81LjCV9PGebYPVy4CH9T2Zu7F /pOlTLaL77GamfBkSUPxSZkGFlYYN5srEiyBSqM0aP8QvcaYwwtqL4IjvY99/Kdh2M2I 509bGeYuGSmu20lPBg38tNjd8aSLOIY9lfls+UEhSbtvGWakDG9IxbuPgqe56D0as982 NnGFJDdBbR1kqNPxRHIIXuezva2tErhFeZ+KKAGjVlJcLTZWVQF+ETipcnqFMGYqW3J4 UeDUFtiaTQEtD4UNkLDyrx7fM28MOJjLoh07kP4UOm7TI0GeR5VLApORGwXoiiZ2CP7i rDLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406077; x=1797010877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=/8UBbDswYma5LlXUJPvSuBXVc3WkKeRe+DCMkWxtE0o=; b=rB6DFdG0DExb8wVxREundVMRh1Z1QiSJCSrff31PI6FRy8s3t8tSvAU/gaAcvteLy1 5UXuwMjzc0u3yvPss5SABPUXP/ChjV1phdOuzeCd7I48nFgHlBAHkwKDvx2EHtYyeVIG +b4XjUhdLkct9dwaJcHcMZQ0HS4LU8/MOHYW0GV+WJihqzZI/54B+//P5zyz9hZvqLBk RNH0hzQ3NNXy0PR13zjOHQxN1fqxLodB8XljFUy1BDxFZ9Zo7KbdRnsxtWjEt88gUwWx KFJ9aq0joAOf4oNMu0igHrOLA3/rfIXynIEf6lOr4WMVBq2s7odGZ6fUZRc4aWTgqKEJ CwiQ== X-Gm-Message-State: APuU4Z+rkhNSyLXnX1h00urnxh8g61kMSwF8IPbocLbkPt7waFccOGYX TkF72HAUDUwY45guiq2XHCFXx6s7rfacAsvlfKPWVzj2+JEdbgi1tyA7XCJoy4U2tt8pFYF08GV qQXJLWFo= X-Gm-Gg: AZFdTZcf+B6MwUh2hn8uPZWIO/ro2amOoqNqWvFHwzMXNFlQo9zqKHt+AZiAhuYJyMy sxBCEfLqVZtz22CvdcWhy5QMjAOMypkRDcYR2qV28lh8ziwe6MzDHx1g+0ZxGcRZtEy4U1x5wQA VAIXmYZfIrdOhc1ezV2+08EUB4UTD0n/Sgouiz9qbIFYIDfEF0EhUibhMUTDZX3vmeYml0w8v4J dblpe0ADLZV8ENtiQ7WEpyhRVnkJQD4+vkvasIDZKbOTRG9wJ1FPDw8ulK6aK3q//wTcuGVZ4CS QsQjxgsIwtdxWB1iPPgurud5ep0vyxXSe0JQ7yPx3VfL+cAn6XzKBMZ7aBeIRRQ9W+wC8kvi6Qq vrKmGFWDek6J2oEe5L7+mQUKIJrJA/D4p/BbReoY6UeoE83kVdkvjzzhIeSHtiEy9pXsK1G5Q2W sKB11PBPvSKa2IszZ6FqO0f1p+5lmXRpWHMto1rEyoC30COMawyrSPtuDdOCkGKQi71A/0Uy6BT Q1DqoFW1oczwLPn70U9rTf8VwnMPEibyX4laqEFvkXFT/Vy8apJfqC4+H19p9PB5LaucfrEt6Rk wK9Ef69EnxgcQb6U6vCVEoWi7l+7nbFsDam3v2TJFZincKHKH8miFrA78IncCfrVgpGxQyUN6Qv SHeQGq9MTxg== X-Received: by 2002:a05:6122:1d55:b0:5d0:1207:b693 with SMTP id 71dfb90a1353d-5f01cdfcffamr2980812e0c.1.1796406077398; Fri, 04 Dec 2026 09:41:17 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:14 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 3/6] scripts/patchtest: skip .testresult files in a directory Date: Fri, 4 Dec 2026 12:41:04 -0500 Message-ID: <20261204174107.1295971-4-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 17:41:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252011 With --log-results, each patch's results are written next to it as .testresult. Testing the same directory again then treated those files as patches, and printed an error for each. Leave them out of the patch list. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin --- scripts/patchtest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/patchtest b/scripts/patchtest index 4bed3c6d88..4c74056065 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -187,7 +187,10 @@ def main(): return 1 if os.path.isdir(patch_path): - patch_list = [os.path.join(patch_path, filename) for filename in sorted(os.listdir(patch_path))] + # Skip results logged by an earlier run with --log-results + patch_list = [os.path.join(patch_path, filename) + for filename in sorted(os.listdir(patch_path)) + if not filename.endswith('.testresult')] else: patch_list = [patch_path] From patchwork Fri Dec 4 17:41:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107351 Received: from mail-vk1-f173.google.com (mail-vk1-f173.google.com [209.85.221.173]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2722.1796406079407300696 for ; Fri, 04 Dec 2026 09:41:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=mXUGYfgl; spf=pass (domain: baylibre.com, ip: 209.85.221.173, mailfrom: tgamblin@baylibre.com) Received: by mail-vk1-f173.google.com with SMTP id 71dfb90a1353d-5f0166fe304so335509e0c.0 for ; Fri, 04 Dec 2026 09:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406078; x=1797010878; 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:content-type; bh=mBO6vkwEomngf3AUTnqcNatEU0kLUzblJkRm2CxqlZM=; b=mXUGYfgl+kCr/BxvsF8DxJGpzi+IIsp6pPPsY+RzK9oXXTLyOlMncTb/UnOFkyOkD+ ELgucCijKlYbXYptY9JFvf2QHYXFITkMBDHdpb7oJb02P8u9kVoohYyI/IDZgdT7MRyW zHQsiYeceDdygy6KYY3Q1gKIGvxLv45a3AK50qXioXaNXHHH56LpPUcP+9nkrd1qgfeT VKf9hKdxhSQg3leqqJwLS3Bi6yrOCki109142alUFxJObPM95FDFfTDct8RwFezyZcyk u0ER4YkFOJhwYvEuZEio3ME45N0WYM/lP/RgzmhB9VdNH4bU8yiXymvwUJQ+1Mg3Rp6U owpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406078; x=1797010878; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=mBO6vkwEomngf3AUTnqcNatEU0kLUzblJkRm2CxqlZM=; b=ruQwkPdQkVKOsv6w9rFYY9JJTIidxyikTRItZf3YXgV09WdHVlr2x4D2zbX2+NWGcw I0GUT0QmSYU8TZ/5yEhYE8hYlyQi2KrigqJKigaKUuc29zD7R8vCTMUaC+xig+n97oEa 1/wbwyDny2m+ttNmEFrGFzpX15g1dfw2/SFYPfKjNKtdxFixZRttivQC8StdixkgC+fU vf5o5XswT/XFW99hEgAYpiLE3TEYDC2XJf0nUGMGLZVs3GqhrMl5LkFY3/JwS4sbjepR 2dcUISttaAjYSlf4Q5kFd1aZEwIxWcX5lHNeXghUUkyC7hqodwp6rjfFwzaZQinSPfd8 s5lw== X-Gm-Message-State: APuU4Z/6TQzLk906wI3CSRb1zxTHiKQKDwf4E5GK1IyrDS7igH1t9CNC 2qlpyRwzCs+KjO811nHX0R4fZRqg3Zt0dDgufRxfexDwm6Sq/nYWbkr447e116KF9kaysRsrcsQ pBn+iark= X-Gm-Gg: AZFdTZfoMKcbmAEuXy7UY4FZ/RC0vOpV1x8xCQAfwxgbquee1UNeUoQZtVIN8ZIlKh0 k5quoJZNBOZhqiR9HYTip6TaPy9/VgAa7fQFObT5o64AYA+BHyBtyx5VmuIbhIbQ3tWwLKlmoPL fHynIbCVMOlT6E2tey2ikRuPvdnrOuX8mQlwDh81QYCgr2DBtVbKdUdhMmXGSfFs89Ns2Qv5opd o6qoqPUhLEp+Mk9DG6KW8jA5K5lCIr5LpbYSnqUJaLMWhZwc+6srW06WxPDS+b8AlmG3auHdcCj S7ddoWWtDE9Fih0drxtATNqXbuEp8TGu8ohfYUAK5e+XZcSbYSZjqFED8N1uvEhbiuISRmt7IKD YTtDbd+SeRg8qRtsgkvIIZizHYOyuqedK8CO5BqugBaM0YaPiDOiSlYn1BgEu5dPNbGMqLdcP1Z DB47fCiMTdg/CquUNuAOiew3EB6WCGHFSAD4CBMfvcd5vpgf0DZET7NAS1SYMdlUgh8S1ExQxY5 JqWvQ2Nl2UROLL6HEDJ++kzDQ6hR1381s8Ooac7wFkQ3aNmwPArDGprbTe+fHGmh9JZBDTOZQEp sS6r0ICyiGf3cDksqJuJtfCklEHSN2/GSFSYP0Qar5rJ2gk2zbAvih5MhNsx05Oqo2qMu6jgxLS tZF10xL5R+6EUlrPF/phpeAMZcCPZFU0= X-Received: by 2002:a05:6122:1d4f:b0:5ee:4003:6b93 with SMTP id 71dfb90a1353d-5f01cfc229emr2736976e0c.13.1796406078493; Fri, 04 Dec 2026 09:41:18 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:17 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 4/6] scripts/patchtest: overwrite existing .testresult files Date: Fri, 4 Dec 2026 12:41:05 -0500 Message-ID: <20261204174107.1295971-5-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 17:41:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252012 With --log-results, the results for each patch were appended to .testresult, so testing a patch again left the earlier results in the file as well. Start a new file for each run instead. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin --- scripts/patchtest | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/patchtest b/scripts/patchtest index 4c74056065..74184f107a 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -221,7 +221,8 @@ def main(): log_path = None if PatchtestParser.log_results: log_path = patch + ".testresult" - with open(log_path, "a") as f: + # Start a new file, so that results from an earlier run aren't kept + with open(log_path, "w") as f: f.write("Patchtest results for patch '%s':\n\n" % patch) try: From patchwork Fri Dec 4 17:41:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107352 Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2609.1796406081054332367 for ; Fri, 04 Dec 2026 09:41:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=XsBj7G1p; spf=pass (domain: baylibre.com, ip: 209.85.221.180, mailfrom: tgamblin@baylibre.com) Received: by mail-vk1-f180.google.com with SMTP id 71dfb90a1353d-5f016232630so300173e0c.3 for ; Fri, 04 Dec 2026 09:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406080; x=1797010880; 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:content-type; bh=ByzL6VU1uDQ+9Qf4R1VarNc3fKHa3hmm5/Ssy/EIXdQ=; b=XsBj7G1pky9Dv+e68CEC+BzAb0TLeaHaNFbr5hCBoAazhLYEI1ib3qBupQUmkBzVOB 6rYJtGNNpDpTsZO1S86OhFv8f/vLdI2VmTJe5GjEfhunTDshZWtDUFafwUQa08pTM47v Lw76pmHTnL/TevVlhrzx7tBGoXxtL7squ+5AkdNRwOkvOe1og4rWNCDF2DP/1bQc3vh9 tdyI+ej9lA8QISBnByyQjCHfarVIjajBQ5h3/srJfqqJcm/XEgxd8qXoxfoSuvDZ1dwV LHI+rRqEOvQ1P11GTtryqeQB2X8DplMOplx2y6aVhh70gVdqlsl9GwIvA0aG4OCWFnuY jhxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406080; x=1797010880; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=ByzL6VU1uDQ+9Qf4R1VarNc3fKHa3hmm5/Ssy/EIXdQ=; b=x090qmLCqj9r2NGn2ybQQ8uIe6LbWye7OkBEC6Uk9CF51fRMC2eBN+tezel1ZqdtH2 2Pf8VnvpElGdekHTnpV0EzhFn3Wmzf6BhU6ApO0dZHT2eaRaSLjYSpHxgyzfOH/QxKui U8MjqtHjjK6iohRreaqtir2j5uChlTubs5W6bcwxCX6nQfytj00MLJlSCmBJZvQxj4jo 0/xxjsYLEOQuVkJ2JGGFCh1swyQlKjm+4LNFsCoreTrU+aLnLsI0LBJhTK45404u1+OC ivqkB2qtO+l598CedvLv0GxJoAN6hizPNnsK28kJ3fV3G22q3uHcEPI8qJdI/li5uWmo p/iw== X-Gm-Message-State: APuU4Z/AsjWXdsj2RZeaWBYKpgILz7ZTKWgA+qKO9zcQbBOYUf0oOgd+ USUh6tAK9Flh6z5SuaMXMOYkkDUP1WZ4sz+1uxdKY3poIm3g67i+vQVIBPpsq7XtaGwRtk8NEgP F5yRCk5U= X-Gm-Gg: AZFdTZdhHYItMM60nXO65DbT/sNvo3o/en2uF8mzKJLOh3yRsetS2lCDxvkzKx9MPLp hVJPLiAlewT6LTC+d7iXZlUCGjLVNVZwFn9SDVqMzFGs46A+Y2yx6fRkg445yXmXVdiDlYzu1La d1NOaHT8kGAAZMC9Ukb5aI/7/PwfuEvcRzjdleErco6GrR3sPaiJ6LjW6coMAV+krFnqaW1hpjU AIyL5Q8/0+PDUzRliCWmeEjUZWXm4YAbCj2eL1dpaBHpD7cNVZ3ScDkPs1+An/C8RyY/fXNt78+ 3aHiY8zK8oq6glKLINiQEfZ3zhJ+yz3YOqcC9Geibsw3aTShu806WiBxOKVP/FcalVwkOg74D5b VceL13CoAserbOXt2hNgEuyCWeUkZLy0vJgrx6CxvG+fjd/P34F/Ekfpd3ai7UcZUwG97/m8Fke jL75GVKIPom46rdVl01Y1ekEbdX8DsCxoyC0hvBvRKxJRk9C3Xc7v2SqFCPDapz2nPTnhXpTmYd yO2bQlexcpAdxOCEIEAEaIGtmdS+gIY6RlS9M3vzWJEwGVceu/uEAvKCedixxyhnDgqfMyia6az beT90KVt4xJ8ccbueH6rh30FUXKX1Ngzeo1WI8w8MWjwls2ErabfDE3c0ix0Tu9NJ3iGTAHukvU 8eOeyvDbUSvJdi7P/Y4okuQo6gCSUzWQ= X-Received: by 2002:a05:6122:32c1:b0:5f0:12ff:aaf1 with SMTP id 71dfb90a1353d-5f01cfb1bd4mr2413181e0c.10.1796406080029; Fri, 04 Dec 2026 09:41:20 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:18 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 5/6] scripts/patchtest: fail if the repo can't be set up Date: Fri, 4 Dec 2026 12:41:06 -0500 Message-ID: <20261204174107.1295971-6-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 17:41:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252013 If creating PatchTestRepo raised, e.g. for a file that isn't an mbox, startTestRun() only flagged a repo error, so no tests ran and patchtest still exited with success and printed "All patchtests passed". Count it as a test error instead, and print the traceback rather than logging traceback.print_exc()'s return value of None. Catch Exception rather than everything, so that an interrupt isn't swallowed and followed by another full run for the post-merge tests. AI-Generated: Uses Claude Code Opus 5.5 Signed-off-by: Trevor Gamblin --- scripts/patchtest | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/patchtest b/scripts/patchtest index 74184f107a..626ee3191a 100755 --- a/scripts/patchtest +++ b/scripts/patchtest @@ -72,9 +72,11 @@ def getResult(patch, mergepatch, logfile=None): commit=PatchtestParser.basecommit, branch=PatchtestParser.basebranch, ) - except: - logger.error(traceback.print_exc()) + except Exception: + traceback.print_exc() + logger.error('patchtest: failed to set up the repo') self.repo_error = True + self.test_error = True self.stop() return From patchwork Fri Dec 4 17:41:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Gamblin X-Patchwork-Id: 107353 Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2724.1796406082549776482 for ; Fri, 04 Dec 2026 09:41:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@baylibre.com header.s=google header.b=CnQHnduX; spf=pass (domain: baylibre.com, ip: 209.85.221.174, mailfrom: tgamblin@baylibre.com) Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-5eadef147ffso835923e0c.3 for ; Fri, 04 Dec 2026 09:41:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796406081; x=1797010881; 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:content-type; bh=l9Ph93FZN/TOgkt72eKRxMWKmZ3YL98qDvqBYDqBE00=; b=CnQHnduXaDeTtugHPmXxz2HNjxLpTNV1hywJqYTn0LWZMxjfj2JDcveCtGTby7UxhR ttf3c9+k/I1xoXqxhX6/eVgv3o3Cwa2nkOiGIu5EpbhO8jblmn+WhFtPY491W5PHBt7T mw1cFpT7BIvzOMAyLBoMM1D+uTI0h6fijij7FgNQs866S5PVQWKGQJ1dKHItOBsrAX1c 5aWNxJFxitcXlxfHSUbbWf+kmu2ML+0N5KhJZmhMDKu/rzuw32DsQQA+ATFnHLXtLq0A /ynpuiTslDJduKxwzqQWFJZv57Fv9QajEEpQJGEe+3uteOh91D8+NBeNeMiK++UAONAT LWZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406081; x=1797010881; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=l9Ph93FZN/TOgkt72eKRxMWKmZ3YL98qDvqBYDqBE00=; b=M2UiDNeqIX/HBLpWYTSDZ5WFRaziBm9/170vGIM65zuT2QwKTig4xsfQD8esMgP/la vXwReZkgXvXSHnkJoMEqzBjUUUPadgCbyFZKobTrJQdYZQCqoyTY43mJqxFrDLVhMdcc hhRjihkkNiZMVHuZKA7puEZq63IVlq7eUNyhix9VskaMtBf8aM8oo+ZaN9xpkXwBeQ5m 4Kx9WH5gMJhHKDIPbOzEX6VhpgZRmWwnTCh200AIjG7yv863f47FRQ0HvydUWjKLs5kQ rb6jEaMemb910wTd5FMjnZlnRgwmG+v9kb2Mo7u/ZsBA6zOdEHKrw+OEu2MD5xKBAW2m 5WKQ== X-Gm-Message-State: AB4q+uEC/70QIZ1HwoKrmjUKcyHz5qGoP8HjJCmLoVd956AMxpYeJ7xW xxvsViIQaFZ3cAhV8RyGqgIhRxsKr6Snf7zsY+Z0+swk+XULZD0vK93Nw2UvQYiH9h9zdt6A8Ef vIA+CWXw= X-Gm-Gg: AZFdTZeET8ROtwmFlcIKasxLQxv8pO4QzKm2wrZ+3HdRiaHL1ucr6J4giAlkXf7ZF2Y DdnAEqplnLoepQ5O8zh/y/QzS51oUrAA1yAwJXHyeyCnHcOPxi1j78dZs2o1se0/G8/A1Gb11NQ xHKrBD2I+pXbXS2NSx+eL4ykGqHqYrCP/8QUsN9Guq44nlK3h+3kOJ8rqfeA3gj71pPiVM0BVAl ZBd7PTE6dY+EtQEavsTjrhngKLrRnnRinqD15OL/j1A3agaHU09nK6KskKlS+jyHKeGkg7hapN9 DeK7vTIdG4T6Oe4NSPS4RuUpGtt2WYHiODfFYGkgetbhmh2m6CWOjA7a+1+z5uorbbKkQQ51eAu 7u0Zb4bZdWoOwEcAjhcGXGeM7cb9WvsA3t9Upd4rTOWokwd2dpu8tIjE95SPiMhVuNfieyWIbtB aAYMtAEYcVSeZx12QX0KftPGMoUw07CWRtGOry8735OLwe8M9fJNnIwC5tHv65S+MidaSdT6aHJ gFCK3n8TxXCQgQehGhod9vUG3J/vBNW0aYbDKfiYbhVSA3MmCVC4z/BGdLkisZ3zCTfkJFsiQqZ eNMu+u2ttIcttbvafi87TbPhLu5OtkpcRR8EF7kVFHG3PXb8MTWoh34vDi8RLr3/OowNMsbP4Ed 0RQFzcW1b6w== X-Received: by 2002:a05:6122:431a:b0:5ea:9a2c:27a8 with SMTP id 71dfb90a1353d-5f01cfc1bfamr2859049e0c.14.1796406081552; Fri, 04 Dec 2026 09:41:21 -0800 (PST) Return-Path: Received: from megalith.oryx-coho.ts.net ([2001:1970:3847:e000:e8bd:ca0f:c232:9f10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5f01d3bf4d6sm1398046e0c.10.2026.12.04.09.41.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:41:20 -0800 (PST) From: Trevor Gamblin To: openembedded-core@lists.openembedded.org Subject: [OE-core][PATCH 6/6] patchtest: tests: test_metadata.py: parse each recipe only once Date: Fri, 4 Dec 2026 12:41:07 -0500 Message-ID: <20261204174107.1295971-7-tgamblin@baylibre.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204174107.1295971-1-tgamblin@baylibre.com> References: <20261204174107.1295971-1-tgamblin@baylibre.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 17:41:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252014 Each metadata test called tinfoil.parse_recipe() for every recipe it checked, so after merging, an added recipe was parsed three times and a modified one twice. The tests only read variables, so parse each recipe once per test run and reuse the result. Results aren't kept between the pre-merge and post-merge runs, since the recipes change in between. test_license_presence's auto.conf change doesn't affect this, since it happens after bitbake has read its configuration. AI-Generated: Uses Claude Code Opus 5.5 --- meta/lib/patchtest/tests/base.py | 8 ++++++++ meta/lib/patchtest/tests/test_metadata.py | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/meta/lib/patchtest/tests/base.py b/meta/lib/patchtest/tests/base.py index 3fb9882cb4..e55dd59393 100644 --- a/meta/lib/patchtest/tests/base.py +++ b/meta/lib/patchtest/tests/base.py @@ -132,6 +132,7 @@ class Metadata(Base): @classmethod def setUpClassLocal(cls): cls.tinfoil = cls.setup_tinfoil() + cls.recipe_data = {} # get info about added/modified/remove recipes cls.added, cls.modified, cls.removed = cls.get_metadata_stats(cls.patchset) @@ -140,6 +141,13 @@ class Metadata(Base): def tearDownClassLocal(cls): cls.tinfoil.shutdown() + @classmethod + def parse_recipe(cls, pn): + """Parse a recipe, reusing the result for every test that needs it""" + if pn not in cls.recipe_data: + cls.recipe_data[pn] = cls.tinfoil.parse_recipe(pn) + return cls.recipe_data[pn] + @classmethod def setup_tinfoil(cls, config_only=False): """Initialize tinfoil api from bitbake""" diff --git a/meta/lib/patchtest/tests/test_metadata.py b/meta/lib/patchtest/tests/test_metadata.py index 442e80973d..cf02af5528 100644 --- a/meta/lib/patchtest/tests/test_metadata.py +++ b/meta/lib/patchtest/tests/test_metadata.py @@ -32,7 +32,7 @@ class TestMetadata(base.Metadata): no_license = False for pn in self.added: - rd = self.tinfoil.parse_recipe(pn) + rd = self.parse_recipe(pn) license = rd.getVar(patchtest_patterns.metadata_lic) if license == patchtest_patterns.invalid_license: no_license = True @@ -56,7 +56,7 @@ class TestMetadata(base.Metadata): self.skip('No added recipes, skipping test') for pn in self.added: - rd = self.tinfoil.parse_recipe(pn) + rd = self.parse_recipe(pn) pathname = rd.getVar('FILE') # we are not interested in images if '/images/' in pathname: @@ -111,7 +111,7 @@ class TestMetadata(base.Metadata): for pn in self.modified: if 'core-image' in pn: continue - rd = self.tinfoil.parse_recipe(pn) + rd = self.parse_recipe(pn) PatchTestDataStore[ "%s-%s-%s" % (key_prefix, patchtest_patterns.metadata_src_uri, pn) ] = rd.getVar(patchtest_patterns.metadata_src_uri) @@ -168,7 +168,7 @@ class TestMetadata(base.Metadata): # we are not interested in images if 'core-image' in pn: continue - rd = self.tinfoil.parse_recipe(pn) + rd = self.parse_recipe(pn) summary = rd.getVar(patchtest_patterns.metadata_summary) # "${PN} version ${PN}-${PR}" is the default, so fail if default @@ -190,7 +190,7 @@ class TestMetadata(base.Metadata): # we are not interested in images if 'core-image' in pn: continue - rd = self.tinfoil.parse_recipe(pn) + rd = self.parse_recipe(pn) cve_check_ignore = rd.getVar(patchtest_patterns.cve_check_ignore_var) if cve_check_ignore is not None: