Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 16C8F606A322 for ; Fri, 4 Dec 2026 18:13:57 +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=G01TlMOi; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=MVMpiMEO Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E3C2283A74; Fri, 4 Dec 2026 18:13:56 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 8v07FmrRXWJM; Fri, 4 Dec 2026 18:13:56 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 1859A83A60 Authentication-Results: smtp1.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=1796408036; b=hjYo1pg8AJ0kSCnEV1FzUsilrwDdkugot7SV0n4T0mhAwwIivgGAqp5xeLNE0N2hItN4 EugmBtEkSZ+rubaQ5SOcrmWyF1V6DHMSjrFawmmmgHfkj1uksS4N5QsH/6kdGp4R9+UBK 5PKxY6m/v6tbr1FyFozkxCUCjPisxDszaYuwmttEGxvDd9qGzZpjpylVVJGIw65YtdKYa ZN5Kd0gb7zDC/lGufZXh0CsvNrw3M5aUAULR36fY3WPCgqtbdXxH031gsu7iKD+0tqN4B 3ndCKus2SbQBlrCXhrYU4cmzSAfvzjib99U16xQHWf15HriZgKLKDpn87oHViygXbsA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796408036; 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=mSiXZxNmA1XVRepDlmZ9by+z2wCNbTc8/R743rbZhAA=; b=jSWv66wuHjNNYrZRUs92/XXPXhEEPgAphOMPWE5Kln9qsEi3EqPkhe8XlPichXbWPbKq HZRV0dzXdz2yd9Gdou/CsNXWe7UKxEAfkXbh7lIdPL6WUlMQmZ4DooRE7gexN9fGCPH8a d06ecfcqjengCnqr9X36Souja2CxFJ/R6aUrm5SeBnrJ3djJKzMY5pZ8bKVl5kcB3HLFO kOXQ07Vo5i0iiWre4qMBWOr60J4MChQQFrDqpQGWwMGInrS17dGHsH8/fLbRZ+Uguvy93 LT1wbMuKIoUCS+3MrrY9ANWSbvonMgSMXV1TFCnwZPTHzxTf2wvWWfL8AMImma4d3XQ== ARC-Authentication-Results: i=1; smtp1.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=MVMpiMEO; 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=1796408036; bh=mSiXZxNmA1XVRepDlmZ9by+z2wCNbTc8/R743rbZhAA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=G01TlMOikeRnmEl1yMUASFE48zy3zPt6IO/VcdmMKChmt7B1vYnRikxIVaWP+XDdr zlU0P5fBO811Rrm7fZ0OVhaAe72GpAUJmH9VU5T0IDd1w6YUDsQvL+4AJwTpw9+Llm X8nDTyZWKuzAptcdn9KjFxTIpEV+iena6vxut7XwJ10u7q3iEGX0UC4I2uFBAiWe6U SVVSypidGLYUuXRIUkHaZdYXINnG5gR4BGAZao+sSCl9giDzmQQ77h51nctb4o+JiF WERE3imR6D80hnThjaQgE9UJutDcS+FHixmxdZbrInoB+i6fYx+9IUZIuZcV0AeYs3 J9T06MyHb/CZg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 1859A83A60; Fri, 4 Dec 2026 18:13:56 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id CA42F2C7 for ; Fri, 4 Dec 2026 18:13:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id BA07F8397A for ; Fri, 4 Dec 2026 18:13:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id YwXpFKMHcJJL for ; Fri, 4 Dec 2026 18:13:52 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 2EF9F838FE Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::436" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::436; helo=mail-wr1-x436.google.com; envelope-from=andrew.goodbody@linaro.org; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=MVMpiMEO Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by smtp1.osuosl.org (Postfix) with ESMTPS id 2EF9F838FE for ; Fri, 4 Dec 2026 18:13:50 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-4c4b8e58c9aso842761f8f.0 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=1796408028; x=1797012828; 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=mSiXZxNmA1XVRepDlmZ9by+z2wCNbTc8/R743rbZhAA=; b=MVMpiMEOt0u99o2iSSFZ/luW/DPM07eBk7lP2g7L+wRP5NN5hu9wzgxxuTasFPWBHh 14IU6dNEoD2sv0oOJTBYn6rMb0y/fWwFcOBZ4lkgvyQ/nhh6sdjARsSjWUAh1nrx1/77 J2fVSRKIgU9M8QnOHCK1YEoFbaGMiCVCEIRpgfjLe7eLzNvVqUM5zNHkrz3w/0AEDKg4 xwm9KW8a6ucYtPg6epX3mDdud+EgyMZcBNSe851lA3DS7/O31K64XW3stc2meayvpmhn a3kwmiDS4/+sSetUwr5BwEu8smZZNpiocxEkaCfevio0tlJRK01vg02XX++clPO4io+T zrDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796408028; x=1797012828; 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=mSiXZxNmA1XVRepDlmZ9by+z2wCNbTc8/R743rbZhAA=; b=RF/cF0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LSUcfg0sfkC cuYTaEcUcCKJTFZdYFXArDgwjYdAwW/E7VdI7SHjNfCwPFJr X-Received: by 2002:a05:6000:98d:b0:4d0:97a8:e1b1 with SMTP id ffacd0b85a97d-4d1eb4f8be2mr4782168f8f.57.1796408027983; 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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 10:13:47 -0800 (PST) From: Andrew Goodbody Date: Fri, 04 Dec 2026 18:13:40 +0000 Subject: [PATCH v4 05/14] binman: 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-5-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_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 If the environment contains the DTC variable and it is set to a relative path this can cause the tests testFitFdtListDir and testFitFdtListDirDefault to fail as they change the current working directory so that the value of DTC no longer points to a valid dtc binary and so the tests fail. Instead create a mock environment that has the DTC variable removed from it just for the duration of the test. Reviewed-by: Quentin Schulz Signed-off-by: Andrew Goodbody --- tools/binman/ftest.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 567ffa96b2b..50fb25325a2 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -7984,18 +7984,26 @@ fdt fdtmap Extract the devicetree blob from the fdtmap def testFitFdtListDir(self): """Test an image with an FIT with FDT images using fit,fdt-list-dir""" old_dir = os.getcwd() + local_env = os.environ.copy() + if 'DTC' in local_env: + local_env.pop('DTC') try: - os.chdir(self._indir) - self.CheckFitFdt('fit/fdt_dir.dts', False) + with unittest.mock.patch.dict('os.environ', local_env, clear=True): + os.chdir(self._indir) + self.CheckFitFdt('fit/fdt_dir.dts', False) finally: os.chdir(old_dir) def testFitFdtListDirDefault(self): """Test an FIT fit,fdt-list-dir where the default DT in is a subdir""" old_dir = os.getcwd() + local_env = os.environ.copy() + if 'DTC' in local_env: + local_env.pop('DTC') try: - os.chdir(self._indir) - self.CheckFitFdt('fit/fdt_dir.dts', False, + with unittest.mock.patch.dict('os.environ', local_env, clear=True): + os.chdir(self._indir) + self.CheckFitFdt('fit/fdt_dir.dts', False, default_dt='rockchip/test-fdt2') finally: os.chdir(old_dir) -- 2.47.3