From patchwork Tue Jan 6 14:28:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1292 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767709775; bh=GnlD9EiPLNWu6y2OVzXiJLHfwl2GOpLb81HbDU6pRj4=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=nq+8i3MAo6OcF7zqpamM1e5raRZR6fa0zIxdcyIEq+Zz79CYtRwKCrUa6q6yXALmb 0VrhhvQcVlsRNlmq2kmXGzSdaRsXg2mtHwKInD8TDNeln28w+MuAOswmrhrDhesU2O lF1IfMj+r7vhT34FX481NQXfM4ZMhkmp2D8nW68q8i/KMhB1hHWfIspHdSwUc9Gt1m 8MbMGKbVYDva7VYilpRuTCUgfRIRM+EMjXWJy6SpylmaJ63BOqM0gJkuv1XQJvM88X c7N0YL8MIHRMhZg292x5vq8VIgeEtgNDstqjtGc3+YNU8bDuTIIl4cyUfL/DDDMz3o y0ruHV5l+WZsA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4C23069122 for ; Tue, 6 Jan 2026 07:29:35 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id N3BILAUdR-hm for ; Tue, 6 Jan 2026 07:29:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767709775; bh=GnlD9EiPLNWu6y2OVzXiJLHfwl2GOpLb81HbDU6pRj4=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=nq+8i3MAo6OcF7zqpamM1e5raRZR6fa0zIxdcyIEq+Zz79CYtRwKCrUa6q6yXALmb 0VrhhvQcVlsRNlmq2kmXGzSdaRsXg2mtHwKInD8TDNeln28w+MuAOswmrhrDhesU2O lF1IfMj+r7vhT34FX481NQXfM4ZMhkmp2D8nW68q8i/KMhB1hHWfIspHdSwUc9Gt1m 8MbMGKbVYDva7VYilpRuTCUgfRIRM+EMjXWJy6SpylmaJ63BOqM0gJkuv1XQJvM88X c7N0YL8MIHRMhZg292x5vq8VIgeEtgNDstqjtGc3+YNU8bDuTIIl4cyUfL/DDDMz3o y0ruHV5l+WZsA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 36D9E6913C for ; Tue, 6 Jan 2026 07:29:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767709774; bh=PcErWoj+lLetYlRdps8V4lOoyuQ8MmCMSGIMcyCTH+E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nlzFm3vFMF3T99WT7esWgag8xpyvI3uDTuMDwwBikqr3owmHTDzQ3+Rro5tInFnMY mFlokueqKEukpNfsoGJ6nIsRgrjkRy18dj2l0jCA5ULIPguBJKeYsHPW55I/apKey0 Q1/gu2FMkzdBlTQecdAYFb3kpfBqV/c1m0GBb40hFq3iR+SP7sS1LZeOu212hvdjOC XoWMcJiqENYRKbw04awzXqBUua0WPzuj0/NnWeGX1tO/+0CdBAMuC8PDaP/sMSIrYr pfx+pL9/yZi04i+VFlwzMeOrZV+fgBvqnSxHvyZLPONqk2xml/D3Sb5wJAZK89ZXDp ODWH/pt9EHp1Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 73D1769054; Tue, 6 Jan 2026 07:29:34 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id YxDuoIGF84-8; Tue, 6 Jan 2026 07:29:34 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767709770; bh=YFt0vbetw0bkXZUUAQ64Qwge7XvpWadqk80VwZFIqZo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JFYMnCVuMuiudzDjtAmW4G2sWdKD9HJAdQa70H3/12MlIKB1bDTvMpxh42zKtLk1K OrtGmRSna1o0dztjsMuitG4qDnHkzeXwZAOMAdKs1TSsxTHeqwlIefmFUMejfSYQWg sGx9fng167mGfQyDLhI+s2tyIQi9AKOAXdLPlNFoDvFvN/fLNNsKGc+sSovb1kl+3i Nu+DySHiFwO9/oIjMHAWt8s/mzUllWUjCy9ig4r301eifb1OMKgP2mtvzXHN+gzTBG VmJ6kIp07oeVwpyssAdZs41Q/cKYvm/QIwtztePHObcFLmmEbutQidXzoSMkWlH38/ e3/CMA2hZcwRA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3F06169083; Tue, 6 Jan 2026 07:29:30 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 6 Jan 2026 07:28:16 -0700 Message-ID: <20260106142834.2511220-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260106142834.2511220-1-sjg@u-boot.org> References: <20260106142834.2511220-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: RTMKD6MLCUGDTI3WEQW7HBWQZEPF2R25 X-Message-ID-Hash: RTMKD6MLCUGDTI3WEQW7HBWQZEPF2R25 X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , Claude X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 11/22] buildman: Remove unused variables in test.py List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Remove unused stdout/stderr from terminal.capture() context and remove unused diff_paths variable to fix pylint W0612 warnings. Co-developed-by: Claude Signed-off-by: Simon Glass --- tools/buildman/test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/buildman/test.py b/tools/buildman/test.py index eae614b56b5..31458c35f57 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -634,7 +634,7 @@ class TestBuild(unittest.TestCase): def test_toolchain_download(self): """Test that we can download toolchains""" if use_network: - with terminal.capture() as (stdout, stderr): + with terminal.capture(): url = self.toolchains.locate_arch_url('arm') self.assertRegex(url, 'https://www.kernel.org/pub/tools/' 'crosstool/files/bin/x86_64/.*/' @@ -1000,7 +1000,6 @@ class TestBuild(unittest.TestCase): new_path = None if b'PATH' in diff: new_path = diff[b'PATH'].split(b':') - diff_paths = [p for p in new_path if p not in orig_path] diff_path = b':'.join(p for p in new_path if p not in orig_path) if diff_path: diff[b'PATH'] = diff_path