From patchwork Mon Jan 19 20:40:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1632 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=1768855328; bh=pYoGMdI1hbFBDNTr46YYzc+BZp4FIvhq3CJ946z8oq4=; 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=FRkXaZ9i7hvp7hSMPsfqyUHWyJ1tI1guiJ6lUTzIwu4w+/p+LTuxyASV6VU92GDv9 xKdJSxrrhr78o4VhR2PxsVe/nG7ezHC/2uAhRcSpnp3dRzGUIx3jIrNjVY8toXM2/V 8fi5Eq6DT2DbjcfkXUlbv9rGnxIzhz07ZquHB6Vhq2ehVN9Yos1v3diwdajZywTV/3 SO6p4pcJ2x0rfhrWmfS1WVrFWwaeJ/loaU+5tLtS958zY3IdazH1YYV/ObAwcrDRA0 2qgXQSxezm2VR1Ljafp80sHP9pEaWpZyDgAQxa4gJYRbokAOH+nh3dXIIOt+737HlJ 1e2xe7xyzJUMA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ABDBC69513 for ; Mon, 19 Jan 2026 13:42: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 HqN7Qdl-QWsV for ; Mon, 19 Jan 2026 13:42:08 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855324; bh=pYoGMdI1hbFBDNTr46YYzc+BZp4FIvhq3CJ946z8oq4=; 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=FdSjDtnqQVL1LqRyyDQIMCAZUrZilkDc313r6hpQAoId5jjhZMQIAJ8ArovsFhPYB F/CA9zyZOK4fqokvIrwhfc1mqrxm+VNm0HNYw4eVOcEz0qv553NL2WbP18J0QYac2S PhMMcM6mMIQcsk7Ei/IBS8NasJPo95Fi/eje4pyQq1CDR4YrkbooamZlqbKY3pUmrK Y7DdVMPA912ssMM/CKU2Es4khzLNZ8n4/XREolx0yQnkbylwvVMl9kWtxmR5sjRyJr DH34PcukfMGyRN+ZR3HofCu2F4ThpeeUS/QAy0Um2YzsehChdG/9ykexNxPmz7Ij+e ej+rMcP2gk3wg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5F9F169504 for ; Mon, 19 Jan 2026 13:42:04 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855317; bh=M13Q2/w9ZHlwSB5EXkixsDtuziwtxTLkAIW+Ek7qdLg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j4uYWYj6yda9QYX/T3gEQNmxunOPupNSsuNWqatXgLHlN39Fu7ppb6XOZqf0g+2ro F/loYv43tnOaXWDSUa/3GX71aymCHFfQ7MtDipwRcR0+XQAk8J1tdOLDSHUjh0aLjO cmovVyB0nB/ky5TN1rIn+aoGqDhgEl7ZEcupKEBV4+XNyzNO7g1b8uI9LK+vTaM2cL DALWmUXPkUlMIx5w9c7pl6nYRU05wdFYW3QLjy6mK/IpI3KRMUZVfnfY+E2GTnV3ZV A8AiFLTgZRj4t4UmFxM9IKERbFH2qqsOjf4MLREkaKQdLZG6JpOoIxKrOOENp6sRcf 4w7pa8D+PD1Sw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6021669504; Mon, 19 Jan 2026 13:41:57 -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 y11qRRRch137; Mon, 19 Jan 2026 13:41:57 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768855308; bh=8d1PXn3G4dCxsmDgQQP0rSY+23/8bEFKPkPMEKREVDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ibV2gsB3joM4oXsvdRxHz71wIxZoeKVFUg+dyyA/z2XlUHZp9VJi3s5kYelneqYSN a23FeDgNIaAFC1XZjxKPJOWG4FhAl9VxfBikPXAsXzhlxT8x/wuzmM5NqztN3kYE0Z c1fTdfHr7b1FHYfBvu8iZnistydilsI5cXXwPCptlJ4oZOt98yRlZDxbTmYcSYXK9d QA9d0E2LR+1jCqhtOfCT+Vk9iPNqG41eztrNbf2onKmvmN6p2RYajtaGIGQ/EfWBqe MtflnO5ZzqltWt00FH5RQ829KTIX5+pfeJVnre9s0ksdFK4SySDHyQ9IU/wH29xY86 ABsp0oOcG+Uvg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3A14C693BA; Mon, 19 Jan 2026 13:41:48 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 19 Jan 2026 13:40:55 -0700 Message-ID: <20260119204130.3972647-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260119204130.3972647-1-sjg@u-boot.org> References: <20260119204130.3972647-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: CULQ6KMRI5DQ2SPWWWEHK52P75G4DRPD X-Message-ID-Hash: CULQ6KMRI5DQ2SPWWWEHK52P75G4DRPD 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 02/27] test/py: Allow --help without a build directory 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 Currently running './test/py/test.py --help' fails with an error about .config not existing. This is because pytest_configure() tries to parse the build configuration even when just showing help. Add an early return when config.option.help is set, so users can view the help text without needing a build directory. Co-developed-by: Claude Signed-off-by: Simon Glass --- test/py/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/py/conftest.py b/test/py/conftest.py index bd0c226276a..8efbe0d01c6 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -239,6 +239,10 @@ def pytest_configure(config): Returns: Nothing. """ + # Skip full configuration when just showing help + if config.option.help: + return + def parse_config(conf_file): """Parse a config file, loading it into the ubconfig container