Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 527D1606A32D for ; Fri, 4 Dec 2026 18:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=sW3sjVp6; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ClRrXQd/ Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2B9F961186; Fri, 4 Dec 2026 18:14:00 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id FGA6-RWYe93k; Fri, 4 Dec 2026 18:13:59 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 697526114F Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796408039; b=dtRm1HUJ1CvslKXp7W5n9zfpTaOqYT20Jek0SPx5Q58eP0gnkUUcVzHLktqFnn9ECv3F 9O3QeT1gJd3fvhMZQrS1ZYZ58v+otxogUWylJ1BFrPam3vsNsTsqGyqouK4MxwZDsX7Ym 6B+tBEiHaXPU7qFGgnMuz1DrMmsZP239Pj+7eCZ9V9snWu/wQhhlcsWR7lZPM7m2gjSeM ROen0T0qRh3xtqgvdIq5uR+jklBySW6dlLdDihVDmGNyaZ/YEXfFfay2x1DZMWF/loN1M 5QAYssjAbzA+PNnLgb0aXqbX3Jrl4QzLPhqMLbOR+aXc9Mz+tNgv/zgZqiBWqAQ4JmA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796408039; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: X-Mailer:X-BeenThere:X-Mailman-Version:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Errors-To; bh=vjT2/f4EHuX4UezBosD+UdTfxjgxkPDiZl4xOPobsRs=; b=HhEn7HXSkon3+k/RCIpV9UPgCCHBnkO3ISgutpJUySZWdfC7qt63WYRfsOROY9UKe69l lHP7Ze1E8JlVkHiMnm2qV33zD4BiEXazbepN3CBYg3zi2OrogACnnyNolyJUjDtWq6av6 U0Dg/xveLVVhnIhxZypq58rqQSjLRUhkIahRFu5MnYEnryWaaaFuhoTdYkIAC/XRAY3tJ G9BpstCwVE6v+XHh0PlgAHAsE/NzXY+Dt3mymfL8ub65w0ll6B30AZ9byK/sbfe2e/vEB GhtBrWObHIMUkNN4gw3eQkssSAImLGLATg2qPRxr1TqeC5STy8GYPk6m9pCevPKd//g== ARC-Authentication-Results: i=1; smtp3.osuosl.org; dmarc=pass header.from=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b="ClRrXQd/"; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796408039; bh=vjT2/f4EHuX4UezBosD+UdTfxjgxkPDiZl4xOPobsRs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=sW3sjVp6SziHe0WAKEIbbmO+kfXjHpeeJBMXdaXr+nl9R3HZ6jeVEfYmXsr66XyJ4 evNdfv0p0n8iApsj7J2uHcsGCkqI9OxmUVxnqyzjDToNk1+lJHaQ5IXMrlTUCGWTQI rrWQZN9XZnywzOvQQs7NehRKJyzRmaBMDTw+C/qjBFKGiym2LTOP4JJ6TIJcWFGhCv sqNotOxR/RurpxyVRd/XMEG5BKe3GSQI5Zo9BB5vYgHsLvJGljPIrgQ5PTTOwrKyGv nlx3CaHpASUQavAoSNn8jxOAB/iuKhQgkkYvN5q7WUMr45bH+lYT0tvKfOGhLYlZ7K BeHiHP6l2dnMg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 697526114F; Fri, 4 Dec 2026 18:13:59 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 57970177B for ; Fri, 4 Dec 2026 18:13:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 426BC610B7 for ; Fri, 4 Dec 2026 18:13:53 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id nuiNOWCA2zoG for ; Fri, 4 Dec 2026 18:13:52 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 24C1B61112 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::32b" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::32b; helo=mail-wm1-x32b.google.com; envelope-from=andrew.goodbody@linaro.org; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=ClRrXQd/ Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by smtp3.osuosl.org (Postfix) with ESMTPS id 24C1B61112 for ; Fri, 4 Dec 2026 18:13:49 +0000 (UTC) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4a35ac4475dso8603635e9.2 for ; Fri, 04 Dec 2026 10:13:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796408027; x=1797012827; darn=lists.u-boot-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vjT2/f4EHuX4UezBosD+UdTfxjgxkPDiZl4xOPobsRs=; b=ClRrXQd/7QryUWH0XY+ZJHzzZbCi5+A0RwlY9wiCElraDCGgawZdc3oK90ESN4Z9qd 8svptvl5OtdC0KbBObbqXLdijNcLh3LA6jLWgGq4Q5qFhW8YwN6YONj203mEaTiW6ETk 5v2WQrA8j6zow++PUnhbicIgAA+meN7zygKTdeiLExwTUVg+NHbbHft0V8XXED56ZLEn 2BtvwRIy2sVUm8G/WU7+EyXfz0cAk4u+/gt8wJe/2p0jqcjggE7KQ9qyYiAinAaJEzfC So0S3uq1lTDR6rZt/s23fVEgRWR/hkfgE8rdS6c15KHkgCdaQRwH+MsoM9sacbu6K8sy PUUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796408027; x=1797012827; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=vjT2/f4EHuX4UezBosD+UdTfxjgxkPD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5l7aLUqcWDUY3xpXPJDrrSJ0dRNSH oLqYKq5CgxOZH5Pghghnlcl2oHOdhjNgz9wLP88EGc0RU+EA X-Received: by 2002:a05:600c:8b5c:b0:4a1:7e77:c382 with SMTP id 5b1f17b1804b1-4bbeb8bd7c1mr51617835e9.5.1796408027038; Fri, 04 Dec 2026 10:13:47 -0800 (PST) Received: from artemis3.elfringham ([2a0a:ef40:ee3:3401:7071:3a81:cc99:9c2c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d174452809sm6915361f8f.53.2026.12.04.10.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 10:13:46 -0800 (PST) From: Andrew Goodbody Date: Fri, 04 Dec 2026 18:13:39 +0000 Subject: [PATCH v4 04/14] buildman: Use mock environment to ignore DTC variable X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261204-qcheck_fix-v4-4-3cdf2e164297@linaro.org> References: <20261204-qcheck_fix-v4-0-3cdf2e164297@linaro.org> In-Reply-To: <20261204-qcheck_fix-v4-0-3cdf2e164297@linaro.org> To: u-boot@lists.u-boot-project.org, Kory Maincent , Linus Walleij , Ilias Apalodimas Cc: Andrew Goodbody , Tom Rini , Anshul Dalal , Alexey Charkov , Heinrich Schuchardt , Mattijs Korpershoek , Carlo Caione , Yao Zi , Michal Simek , Quentin Schulz , Marek Vasut X-Mailer: b4 0.16.0 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 When testing the toolchain setting of DTC in buildman, use a mock environment to avoid making changes to the environment and give the test more control over the environment in use. This avoids test failures due to being passed an unexpected value for DTC. Reviewed-by: Quentin Schulz Signed-off-by: Andrew Goodbody --- 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 7ee9496ffb3..a5566a9ab89 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -1012,8 +1012,10 @@ class TestBuild(unittest.TestCase): def test_skip_dtc(self): """Test skipping building the dtc tool""" - old_path = os.getenv('PATH') - try: + local_env = os.environ.copy() + if 'DTC' in local_env: + del local_env['DTC'] + with unittest.mock.patch.dict('os.environ', local_env, clear=True): os.environ['PATH'] = self.base_dir # Check a missing tool @@ -1038,8 +1040,6 @@ class TestBuild(unittest.TestCase): toolchain = self.toolchains.Select('arm') env = build.make_environment(toolchain) self.assertNotIn(b'DTC', env) - finally: - os.environ['PATH'] = old_path def testHomedir(self): """Test using ~ in a toolchain or toolchain-prefix section""" -- 2.47.3