From patchwork Sat Jan 3 01:18:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1217 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=1767403246; bh=AASwVJZy/XHAiSRZFUMIcNHl7EGkVLLULZ3ziwzczyw=; 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=LQp2IYwGHVaRDEGeiKbIsqjyZ31iZObLQAeZjlrtwxpAaOWH8YI+YV8O7uXLUfJL+ wgdedCxJ0wixYLlaQCwoUX0Yb4dS/3s28Z0Y5F16Q3e6SS+5UZ/4048L/MnKJTlUFQ pRrCNm+FGxRjNugyZ1pwRI3loYA0WHA7BzqgcNiyz6eC127jLC2/c41/RFQu0itpy0 a4eZY1UJoTnz37aO6bfBqeyMtmj2mdRviBiv92Za4DguNpa/MbJrMT/XPKpzwPKvrN dCeAOmazwPvN3DqFKrGMKuCKmOx7idI0v3/h8xKslmgkE4vY6WS7rKK5TxwI0yE6Ie 8m0ZzOVrsq6Ig== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 656DB68FAF for ; Fri, 2 Jan 2026 18:20:46 -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 n4sJxRx2eSJN for ; Fri, 2 Jan 2026 18:20:46 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767403246; bh=AASwVJZy/XHAiSRZFUMIcNHl7EGkVLLULZ3ziwzczyw=; 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=LQp2IYwGHVaRDEGeiKbIsqjyZ31iZObLQAeZjlrtwxpAaOWH8YI+YV8O7uXLUfJL+ wgdedCxJ0wixYLlaQCwoUX0Yb4dS/3s28Z0Y5F16Q3e6SS+5UZ/4048L/MnKJTlUFQ pRrCNm+FGxRjNugyZ1pwRI3loYA0WHA7BzqgcNiyz6eC127jLC2/c41/RFQu0itpy0 a4eZY1UJoTnz37aO6bfBqeyMtmj2mdRviBiv92Za4DguNpa/MbJrMT/XPKpzwPKvrN dCeAOmazwPvN3DqFKrGMKuCKmOx7idI0v3/h8xKslmgkE4vY6WS7rKK5TxwI0yE6Ie 8m0ZzOVrsq6Ig== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4F05868BF2 for ; Fri, 2 Jan 2026 18:20:46 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767403243; bh=yd2gHa11sq5uhAtbbm9ksPm0dJ+AVq1WE1JtYRHMT3U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MYndHzJ+elOUfSTZM5L9BwW+lgprb/ij3eB1KlGJOiTzDBABzvzN/F/0DEaz991kj gWpJ3ukxcpMOBJvUiJEcz+b6sCPT1nQ99cAqYaB1xQP1ig02MDf65PzVYlD3+EOOgL mX73j9QoYVhj2wXkvzeb3y7TwMfmIvo6uy+cYY6rk2UQKisVkgDi8q0gtb7GPAhaya Qql5CLImCiWVFy05V9zQEwU+0u4dVdoMrXTFxBrBo2kFi/yAbOXkoB3pJwNdrFtErb AZSeO3Hg2iQ4rUREcpriyLQt1fVn7Ld+R5oW0n+kW/58sq0YRKRG6Qen73riybf22V FPfGIAvxHx/LQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9B33468FAF; Fri, 2 Jan 2026 18:20:43 -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 RYHC3WhvxtKi; Fri, 2 Jan 2026 18:20:43 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767403237; bh=t0Aw610biZKL/3dKi8jymVCFaLwFHG+z5ZQw4um+JNw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=chiF9EH6CKbjO6ZufuC7rs95TgkhvuwnpcjOAyAJkkjd5gd+6GKhdVMs+hf908rdq GiKdcXa4/ItR/lOEDRiwZr7/M4e2PPMojIFlkJUO5HkBM4IxznER+XkVuufhAQcvoq 5W6dq7UZdPkEGbmdOAeViBFN8fAQkQi2L+FEqcxuOGZMA/CiLQiY0WC3xla6rFfu7t HmzKSRgl/Z3hxV+drzR8YTjVgM0lCKZoHM2lm6qgNuN89OU9tbdmg4Uyj0uzVWslaG 4U33jd6b4Gcf5Qk4l5sCtfI4WEhodoGYwl2qIhL8qyECiqOW46bcKEDZYQQ2iJIhau waW9FsChEn8Ew== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id A9FD468F87; Fri, 2 Jan 2026 18:20:37 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Fri, 2 Jan 2026 18:18:59 -0700 Message-ID: <20260103011908.149445-24-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260103011908.149445-1-sjg@u-boot.org> References: <20260103011908.149445-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: IX7T2SCWEMQZ45P5KT5U2ATVLZ7ZAEVG X-Message-ID-Hash: IX7T2SCWEMQZ45P5KT5U2ATVLZ7ZAEVG 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 23/24] test/py: Add an add option to skip flat-tree tests 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 Add a --no-full option to pytest that passes -F to sandbox, skipping flat-tree tests. This allows running only live-tree tests for faster iteration during development. The default is to run full tests (both live and flat tree). Use --no-full to run only live-tree tests. Signed-off-by: Simon Glass --- test/py/conftest.py | 6 ++++++ test/py/console_sandbox.py | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/test/py/conftest.py b/test/py/conftest.py index 0060f3da986..bd0c226276a 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -102,6 +102,10 @@ def pytest_addoption(parser): help='Show info on test timing') parser.addoption('-P', '--persist', default=False, action='store_true', help='Persist test artifacts (do not clean up after tests)') + parser.addoption('--no-timeout', default=False, action='store_true', + help='Disable console timeout (useful for debugging)') + parser.addoption('--no-full', default=False, action='store_true', + help='Skip flat-tree tests (run live-tree only)') def run_build(config, source_dir, build_dir, board_type, log): @@ -352,6 +356,8 @@ def pytest_configure(config): ubconfig.persist = config.getoption('persist') ubconfig.role = config.getoption('role') ubconfig.allow_exceptions = config.getoption('allow_exceptions') + ubconfig.no_timeout = config.getoption('no_timeout') + ubconfig.no_full = config.getoption('no_full') env_vars = ( 'board_type', diff --git a/test/py/console_sandbox.py b/test/py/console_sandbox.py index 565dce27e56..3bd109acef5 100644 --- a/test/py/console_sandbox.py +++ b/test/py/console_sandbox.py @@ -53,6 +53,10 @@ class ConsoleSandbox(ConsoleBase): cmd += ['-d', self.config.dtb] cmd += self.sandbox_flags + # Skip flat-tree tests if --no-full was passed + if self.config.no_full: + cmd.append('-F') + # Always disable the pager cmd.append('-P')