From patchwork Mon Nov 30 15:28:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 106516 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.34599.1796052538781278787 for ; Mon, 30 Nov 2026 07:28:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=P81kqrgV; spf=pass (domain: linuxfoundation.org, ip: 209.85.221.41, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-4a7b8abe209so8261302f8f.0 for ; Mon, 30 Nov 2026 07:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1796052537; x=1796657337; 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=8uRfNQw0YPOfMl3C+t1lDKxhf1092tLudt8OWi03IKM=; b=P81kqrgVvR/A7KtikqiLl7uE1YsdyymDtD0guDAKRmzCGOgwRnCvCviJFB46kl/gpz +dZHOa0gVZ+PniOsJDd4m06cV1NsPAo7gmiLOmTeaaPZrfcb8dQtUnVh6yqwhzWOyijB wxxNiGbzjA820xHwZKuBWMeX45wLu22wthXCQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796052537; x=1796657337; 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=8uRfNQw0YPOfMl3C+t1lDKxhf1092tLudt8OWi03IKM=; b=PHgXAB/TvOpDTnfqnHXUJHzxQm5HNDTGjaNxyJF4d+cWv532rJ3pdWKiCJDaAuZBVE X4QOOBBvVB4lM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X-Received: by 2002:a05:6000:1a8f:b0:499:978:251a with SMTP id ffacd0b85a97d-4abb5db73d6mr69375699f8f.54.1796052536881; Mon, 30 Nov 2026 07:28:56 -0800 (PST) Return-Path: Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:2444:81bb:2aff:8d84]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6baa397asm66033172f8f.48.2026.11.30.07.28.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 07:28:55 -0800 (PST) From: Richard Purdie To: bitbake-devel@lists.openembedded.org Subject: [PATCH 07/17] tests/cooker: Drop obsolete collections test Date: Mon, 30 Nov 2026 15:28:37 +0000 Message-ID: <20261130152847.3472849-7-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261130152847.3472849-1-richard.purdie@linuxfoundation.org> References: <20261130152847.3472849-1-richard.purdie@linuxfoundation.org> 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 ; Mon, 30 Nov 2026 15:29:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20496 Since collections are no longer supported, the test no longer makes sense. Signed-off-by: Richard Purdie --- lib/bb/tests/cooker.py | 59 ------------------------------------------ 1 file changed, 59 deletions(-) diff --git a/lib/bb/tests/cooker.py b/lib/bb/tests/cooker.py index 923adc156b5..290dfc48394 100644 --- a/lib/bb/tests/cooker.py +++ b/lib/bb/tests/cooker.py @@ -306,65 +306,6 @@ with bb.tinfoil.Tinfoil() as tinfoil: with self._build_dir() as builddir: self._run_script(builddir, script) - -class CookerTest(unittest.TestCase): - def setUp(self): - # At least one variable needs to be set - self.d = bb.data.init() - topdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "testdata/cooker") - self.d.setVar('TOPDIR', topdir) - - def test_CookerCollectFiles_sublayers(self): - '''Test that a sublayer of an existing layer does not trigger - No bb files matched ...''' - - def append_collection(topdir, path, d): - collection = path.split('/')[-1] - pattern = "^" + topdir + "/" + path + "/" - regex = re.compile(pattern) - priority = 5 - - d.setVar('BBFILE_COLLECTIONS', (d.getVar('BBFILE_COLLECTIONS') or "") + " " + collection) - d.setVar('BBFILE_PATTERN_%s' % (collection), pattern) - d.setVar('BBFILE_PRIORITY_%s' % (collection), priority) - - return (collection, pattern, regex, priority) - - topdir = self.d.getVar("TOPDIR") - - # Priorities: list of (collection, pattern, regex, priority) - bbfile_config_priorities = [] - # Order is important for this test, shortest to longest is typical failure case - bbfile_config_priorities.append( append_collection(topdir, 'first', self.d) ) - bbfile_config_priorities.append( append_collection(topdir, 'second', self.d) ) - bbfile_config_priorities.append( append_collection(topdir, 'second/third', self.d) ) - - pkgfns = [ topdir + '/first/recipes/sample1_1.0.bb', - topdir + '/second/recipes/sample2_1.0.bb', - topdir + '/second/third/recipes/sample3_1.0.bb' ] - - class LogHandler(logging.Handler): - def __init__(self): - logging.Handler.__init__(self) - self.logdata = [] - - def emit(self, record): - self.logdata.append(record.getMessage()) - - # Move cooker to use my special logging - logger = bb.cooker.logger - log_handler = LogHandler() - logger.addHandler(log_handler) - collection = bb.cooker.CookerCollectFiles(bbfile_config_priorities) - collection.collection_priorities(pkgfns, pkgfns, self.d) - logger.removeHandler(log_handler) - - # Should be empty (no generated messages) - expected = [] - - self.assertEqual(log_handler.logdata, expected) - - class BuildFileTest(_BitbakeSubprocessTestCase): """Tests for the buildfile ("bitbake -b") mode."""