From patchwork Tue Aug 19 19:39:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 29 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=1755632421; bh=WKLZOlhEd11MjJ37Zbe50wBs/KYK07J1NXgt7s2MqiA=; 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=gRHNLOa+fuF6Iiz3FHJ6/tJXKEt4q3EomHmKMnYcTBFIhm2Vjzm/1ekyc1PQgFN5N zLCM2WqXqvCBpVKYRYu4aqVkdK52hb4YghbgDu3GkEe7x2GTYbWV4oZ8uYW27coiC7 U3emvIWi0NDlgaWRGlU581pv2QTFfLtd9OJWusyE/fXZ2VDBLKSDkSd6KQSUWflp9T /ChPX1thu38EY0kNPs3+qt8BdB5+O8JtBDH2gXhBBuLNhml1dNbZqgRYtVLsQxC5Ue HRIH45ntqmE+am7ECnsEZZHpg7M9Un/xYHus2XF46jSgiaESyzDQGhPa8+z2rYmaOu 7ih9Q4CWoUs7A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D5CAD67619 for ; Tue, 19 Aug 2025 13:40:21 -0600 (MDT) 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 ctVt3lcWt1g4 for ; Tue, 19 Aug 2025 13:40:21 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632421; bh=WKLZOlhEd11MjJ37Zbe50wBs/KYK07J1NXgt7s2MqiA=; 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=gRHNLOa+fuF6Iiz3FHJ6/tJXKEt4q3EomHmKMnYcTBFIhm2Vjzm/1ekyc1PQgFN5N zLCM2WqXqvCBpVKYRYu4aqVkdK52hb4YghbgDu3GkEe7x2GTYbWV4oZ8uYW27coiC7 U3emvIWi0NDlgaWRGlU581pv2QTFfLtd9OJWusyE/fXZ2VDBLKSDkSd6KQSUWflp9T /ChPX1thu38EY0kNPs3+qt8BdB5+O8JtBDH2gXhBBuLNhml1dNbZqgRYtVLsQxC5Ue HRIH45ntqmE+am7ECnsEZZHpg7M9Un/xYHus2XF46jSgiaESyzDQGhPa8+z2rYmaOu 7ih9Q4CWoUs7A== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C3EBC67608 for ; Tue, 19 Aug 2025 13:40:21 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632420; bh=bCFg7XgmvqS9iabWEZ77ppBDmNWIWuuXEqFB352pg70=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hRD68aNn1isNszHPL49jIRTcS64AjQfOTFh/CyfHbOMleJKJnCu277MLd1v4AeW4F 9CCRv+2GmZgpFyTTP7beBDj2X8rm3B2Wks+ZO0vOCg5xdevDz6SPql1CK3oYhA3mKl /p342PN4sRoOCAB722LyENDfEoJ/TUC8Lepj0LVpQRlLt1La79jwQ//lqiuSXMNlLT ypT+TtLzP7/wNKnMr8hPE9G7qG+nq0wPg9se68W2qQ35aUeVVxtl0ibXHDw6B++9O9 VcCCVBMVqyCjeQk1emHaM5oiyfDVQq+oM6AnHx43jzlOJPfG0stHLr2y73GfDKt9GD 81YqTJw5PQKUw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 06E94675EE; Tue, 19 Aug 2025 13:40:20 -0600 (MDT) 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 axl-b1ztO4Yk; Tue, 19 Aug 2025 13:40:19 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755632414; bh=JqV2+wwneYu8PedKXfwSVrbzVG/3ip4ClOtl0PdL54I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=whd6RGZByJTrnw4aXwHXGH9MEqQhzur//bw6reDycuuaQVge3hjnJ7rLBZqL5gQrp V0IJuHZoiC8ftcbVpL0HvIiaxtwSG/HDyU7mCgBh1e1ubC16MxXEzdF+nlEpmO88bD CiJmKPkKnJV8y3D6yAPt7a6Y+MQULys5u0cFMhfWVOlEYlzmtlSSZhlxc4tlC21d5I 0qiwUciInRLA2XqxZJVEv/8SVZH2x8rf97hrNnf8VEkHjMRsgRKUaT2NBeTihBejaZ GPy3oRVrS5+7o/GCQfpRNW8bBNnuYLZ4cu1wFIabEPwTp5lIZNDYUfNd6agVj7ou6g mF6e2qebXYV4A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F081D6761C; Tue, 19 Aug 2025 13:40:13 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 19 Aug 2025 13:39:02 -0600 Message-ID: <20250819193918.874215-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250819193918.874215-1-sjg@u-boot.org> References: <20250819193918.874215-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: NWBDUAPPXVWWTUTVARXJCBHGI46TCHQD X-Message-ID-Hash: NWBDUAPPXVWWTUTVARXJCBHGI46TCHQD 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 X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 06/15] buildman: Fix pylint warning in test_skip_dtc() 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 Use a different variable to avoid overriding the toolchain module in this function. Signed-off-by: Simon Glass --- tools/buildman/test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/buildman/test.py b/tools/buildman/test.py index c7000b58bdf..b4e612bc5d6 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -1030,14 +1030,14 @@ class TestBuild(unittest.TestCase): build = builder.Builder(self.toolchains, self.base_dir, None, 0, 2, dtc_skip=True) - toolchain = self.toolchains.Select('arm') - env = build.make_environment(toolchain) + tch = self.toolchains.Select('arm') + env = build.make_environment(tch) self.assertIn(b'DTC', env) # Try the normal case, i.e. not skipping the dtc build build = builder.Builder(self.toolchains, self.base_dir, None, 0, 2) - toolchain = self.toolchains.Select('arm') - env = build.make_environment(toolchain) + tch = self.toolchains.Select('arm') + env = build.make_environment(tch) self.assertNotIn(b'DTC', env) finally: os.environ['PATH'] = old_path