From patchwork Sat Jan 3 20:04: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: 1246 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=1767470840; bh=bqTVIlZaOAbRkcEAh9JX+SWxzv4jtG0Mpc4mN6bLMxM=; 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=n8eS43rTwu0O1+FcCyMDshzcuJ0+FnCx7MK+P41Qif3xMTxJ0KxdjaC6YJ3tPdcdC B8Yvi/+eXj4sXnaPxAaNYKeAPZtmVYxgddqzBEED4IHY0jQGaEX+fldXR+1nuqZ7Gy Tw+w5SjfsQjjUlEv/KGyajs183UYINXeRTV7NVcxDHNTelg/GtJqjE28eUUomrtKtC v6/2ClmKqRXb/FyM7ptJY1U5novwVAdcF5/eXiG86fh+EiX8nTndsyDiJryTtFkVSB mjcITVWSTXjRKkDMvAw6f6t5t77DBgTdn5p915hgcyUl2qj507T0qFlLlD3YFdkUyt wara0xGDP4b4w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 10DCC69095 for ; Sat, 3 Jan 2026 13:07:20 -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 rhLMjrM3_VyK for ; Sat, 3 Jan 2026 13:07:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767470840; bh=bqTVIlZaOAbRkcEAh9JX+SWxzv4jtG0Mpc4mN6bLMxM=; 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=n8eS43rTwu0O1+FcCyMDshzcuJ0+FnCx7MK+P41Qif3xMTxJ0KxdjaC6YJ3tPdcdC B8Yvi/+eXj4sXnaPxAaNYKeAPZtmVYxgddqzBEED4IHY0jQGaEX+fldXR+1nuqZ7Gy Tw+w5SjfsQjjUlEv/KGyajs183UYINXeRTV7NVcxDHNTelg/GtJqjE28eUUomrtKtC v6/2ClmKqRXb/FyM7ptJY1U5novwVAdcF5/eXiG86fh+EiX8nTndsyDiJryTtFkVSB mjcITVWSTXjRKkDMvAw6f6t5t77DBgTdn5p915hgcyUl2qj507T0qFlLlD3YFdkUyt wara0xGDP4b4w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 00D5A6907B for ; Sat, 3 Jan 2026 13:07:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767470838; bh=Rln2mHG4qY0L775vFlT2WMsxatHYm8LsAtSPM4hpnvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FZ7Hn117pQivknRwZl1gPqDuk5Lrom3P2G5ymX/8ZYHmSNhNR3sUzvvRlwyf86lpL wo20LHfiqJWgDSVdzBiPB3bhDqxt7lNTfQjnxs+jDysrklX3QGqDbKNK7IQ27ynnol 8CCies67R0qPCdPVo3mx9lMZpNC1xGFlwMkCP82lx5lsofvOAsVkhE/B2ziXNPkBT+ VWozJxs5mCU2D4Z91iLFlKyGEgeBAuMn1+bNyaPPSmNJiZPBB+XLcVtzQskOmZLJ2K GgE0Vsf3UeyFra94pkb2nSc8zPLXiU2qZofbjQ9gjEch98v/5xNbl4l3OMJfkSFQkq wg/fvKuZvOKfw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0127668FCC; Sat, 3 Jan 2026 13:07:18 -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 vwCwlioYKW2e; Sat, 3 Jan 2026 13:07:17 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767470833; bh=krkc8TKRkoR0r/qbYFK8Z84GtVX0rS2+BJVyFWn5lFw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jaCake91dBrkY59X0Gzdp+pHYc7aXM3U92qzGFrPS4wX8PxSobMgbeqLJOVLkEhzc LUpzLtzj2Taerv5M864XCoXX8twjelIothajHRrz1N8wOppgxX3Y5GCa7y4DNmChx8 7qAPQV3De5y+FecJcBm39SKraSUztBTt+SwJEugmOhOdJDl+w3F9gMadDs7AHML9YN 8ycI+bxaHp/8kVPMzZfZs2KOMZ6EPuKz6+sDs4Fe1B5m8eSHpcvwc11WeJuHhgKxLR VA/ZTCpUx1sQJy9WnRLOvkTIVpYztyg1LaOmaKtTg8YoLPkQe1Lgj/Ssw+qnEkC5wn A43vVeFKuYl+w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9396468FD2; Sat, 3 Jan 2026 13:07:13 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sat, 3 Jan 2026 13:04:59 -0700 Message-ID: <20260103200510.3605009-29-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: KHSF5X3JMZ7RO7T7RLM4CARP2RGGIJ3U X-Message-ID-Hash: KHSF5X3JMZ7RO7T7RLM4CARP2RGGIJ3U 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 28/29] 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 --- (no changes since v1) 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')