From patchwork Sat Jan 3 20:04:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1243 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=1767470828; bh=2l875QD1OwZ+GXKgi7ChsHYs272oebr77iEIEf8ukoQ=; 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=UjrgR9SvvygdPKnW4xqQVY3hw7fA8UF18j8SZmuesliwa6dfirKEKi5mfmdNZAmH8 L9gS/fb4z8NkSXsiE6zGQNIf1NA9/Jfn1h3DWRYoMzydI/MUeYoA5+Cgz0+5AQ6n0S apevsMoDDxEZdAZFShfK5YQidkNuWP5bFetcFdfZgIcDeQmD1DLaU35m7OHNU/EdxJ sTp7/R0Op3rR0H0T4dsguGReYPg5d9yBHGcVYc6OIVD6zHyE1ZSuGTwMyn6Er+XDxw APR2e87k2TqVVVl6BeGl08e07fN3qc0jEGoBB25sguwLbyJ/NgaUHH2kiFQwaGTUP1 tzGHjWbsfhgtg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 18C8268FCC for ; Sat, 3 Jan 2026 13:07:08 -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 06dG1QQuPHxj for ; Sat, 3 Jan 2026 13:07:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767470828; bh=2l875QD1OwZ+GXKgi7ChsHYs272oebr77iEIEf8ukoQ=; 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=UjrgR9SvvygdPKnW4xqQVY3hw7fA8UF18j8SZmuesliwa6dfirKEKi5mfmdNZAmH8 L9gS/fb4z8NkSXsiE6zGQNIf1NA9/Jfn1h3DWRYoMzydI/MUeYoA5+Cgz0+5AQ6n0S apevsMoDDxEZdAZFShfK5YQidkNuWP5bFetcFdfZgIcDeQmD1DLaU35m7OHNU/EdxJ sTp7/R0Op3rR0H0T4dsguGReYPg5d9yBHGcVYc6OIVD6zHyE1ZSuGTwMyn6Er+XDxw APR2e87k2TqVVVl6BeGl08e07fN3qc0jEGoBB25sguwLbyJ/NgaUHH2kiFQwaGTUP1 tzGHjWbsfhgtg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0693A68FD2 for ; Sat, 3 Jan 2026 13:07:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767470826; bh=Qi70dORVIzw+LboyIa0qsj31G5+/VhOOkv8L9ptjzkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RNPS14ilNdhIqQDoBe9a9wuzNLiSPtdxOrp66ufnlR8uT83IZRaYFqyF7TIZ1seIr 7NdejPIx8XhlhhZqYqziS3RZXBx75+XsltDo/77fhmvpclWMfNE7ukWw22pvxuLrww lszSpvcwgwBEOl09uD0fVP58RHU1Cud1PpR6Xyczt/TihnEPxg3/i5vXmXxaFQAeBO n6brkz3B4lmoMul9/bQ/aq9Tv8cr1R4wBfSgt6hF90EHWNdMyIZ5Y36zRdnWRlqi8M +E3a3TVk5lzw+1du0fCU0xy5KnztM5RZVZXi38oTNhDDXLts+HCGvO2/kf6gNcBP+w GltZZ2mn0cOQQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3BB2C68FCC; Sat, 3 Jan 2026 13:07:06 -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 UG-FQoZOYreH; Sat, 3 Jan 2026 13:07:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767470820; bh=9M0AKA6qf5o2Y7TcKidGHxzqFsEBMzMHF+khLAmjtUs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oedY+Gg/bn15aCezVe8ezOYWTmdK2YlluihDh6LHWjc2YYJ63Q7Ez1m+e6X7yZ6XH EDbGYx4E2/KFOb9kZem1gLThhOCZjFsaNQlSH+N+ilghDf7cxas2ywE9QaDzhxWTUa I07ZKrgRvxKBWmwoc6eJ3nKaS5uOW0pymLa8m2BkCMRtieFbvDjYEEvVM/8f0CT85Q AUp7h1z7Yk9bur7xujn78Yt0vZMMUMqy9DIw8OyqZssmrpy1pbtbS7sfMuN1guvfxS L2xO7dpI3y9fR2Tbdt4AzcpJeYxTGz0am0KlKOII1V/SEluEcMC1uONqgHi6nq+jne Khqb9EuUOuOnA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id E78E6690A2; Sat, 3 Jan 2026 13:06:59 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sat, 3 Jan 2026 13:04:56 -0700 Message-ID: <20260103200510.3605009-26-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260103200510.3605009-1-sjg@u-boot.org> References: <20260103200510.3605009-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: OLEYK4CDYM5KBK25YYOH6IBBS27NHKGN X-Message-ID-Hash: OLEYK4CDYM5KBK25YYOH6IBBS27NHKGN 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: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 25/29] test/py: Handle a failure during configuration 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 If the build does not exist we can get an error when starting up: INTERNALERROR> Exception: .config does not exist; try passing --build option? Exception ignored in atexit callback: Traceback (most recent call last): File "test/py/conftest.py", line 697, in cleanup show_timings() File "test/py/conftest.py", line 644, in show_timings if ubconfig and ubconfig.timing: ^^^^^^^^^^^^^^^ Fix this by setting up the timing member at the start. Signed-off-by: Simon Glass --- (no changes since v1) test/py/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/conftest.py b/test/py/conftest.py index b79080af961..0060f3da986 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -301,6 +301,7 @@ def pytest_configure(config): ubconfig = ArbitraryAttributeContainer() ubconfig.brd = dict() ubconfig.env = dict() + ubconfig.timing = None not_found = [] with log.section('Loading lab modules', 'load_modules'):