| Message ID | 20251220051013.3459855-3-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1766207435; bh=6eVKhsZuIG2raPP+SHYodi93juH9+EN4F3WmY3Di7C8=; 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=Y8EBVQFNW+tRTf5/Q23tAdPNM/T7xWAPdLajwVtIyXOP9bLigr+ll5TAAAYFy2Cxq Cq9QDzRjdlq2t54oTAeo1AV5mbBC66QoBo5j9JS4ERYhWwshdpq9sR9uM9h+q9S5lC 3jWpGlAha7ta6l8J7lKkTAKwQllx3qwuvT0z/SdxMFAubvGoqNLuNR4P2ssRxJ2g/W /TadLqwlG6n5/UrcTHg9TTZZkxQVP8vs2nBKh6aUIrt+/+F8dUlnCB3/8VzmZVowd/ dOXwF/1bfak6mcBWWHR2AiADwsmz0OvydYGrDO0cNIC5UNsH9IrWSsjkRNK+ad58/H S7SslLxhI3DXQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 39F2D64C25 for <u-boot-concept@u-boot.org>; Fri, 19 Dec 2025 22:10:35 -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 eXoms_tUJt2m for <u-boot-concept@u-boot.org>; Fri, 19 Dec 2025 22:10:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766207434; bh=6eVKhsZuIG2raPP+SHYodi93juH9+EN4F3WmY3Di7C8=; 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=e42SdKlsMPfbMfzLMt/lq021Hb5JxU4lUhgiXiw0GQ7raIgLePFULN5e8RCyL2LEx DveZfgLSZk4WGZ96W736FuBzRR1zpEUXGBZ3WWPgsn0PCEp2P1w+C1sFsagXlva1QW sRLW18bmnM6Zk2/iZndd5afvc/9r4Z6mgZrQJcKEHKkQAEZ3Jf1/nglHiZ+ES/1mR+ NpX67m+0GnhE5v0IRa1so6yEGtVevmpLUTDn4GIYvz9XwOVL8mvu/rNOoiCXmsr387 4XuddWoxtaI/xaItyrDqYVqSa2Ec8xTeVPOevZQ2a2fvg0N0lyqVCTBq/8LEeaK7bX yKWvGc8dfffOA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5456C64C45 for <u-boot-concept@u-boot.org>; Fri, 19 Dec 2025 22:10:34 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766207431; bh=GD9TCk0FyWIsgEq9aXFbEj6KGb22RQ8Wyj2me4EudvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mgbpCCHMPE8Bd9a0MG3K9BImf3AxIss1s7A5SuJKJu1TWtnW7+D//Sh0NfNC4LlFO z9cTOX74BJfmHfO5oDhHGZxY2uizyJ4xTQLOhj795yqc5XL0V30naXqsBm7S+8g3vV hFv9EZEEKarSO/sqcNrQz6z10dgEJswgf/R07nLNAwZMVOAcZp+W2bO5k7E9ct6b8M ExugkJZv64jM0otjuGIV9SNWEQoOzAM1/vZCWfuS7P0Dpf1YJOPN6vXP9+U5QLJiFC Nk6wjvoq6lMUDxa4P3YLQrQbjeZYvyZZUhbS9n8qTVBAhjVmnQhChb/jjDYCtrlgK/ sN+TT2M9XhhVg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D3D0764C2A; Fri, 19 Dec 2025 22:10:31 -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 c_aTRRL0z-aI; Fri, 19 Dec 2025 22:10:31 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766207431; bh=SRZStiB9gxwRe41KgNTO1fGp2L+za2Eu3txXoeinW3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qGERKlv1Twe6Z+EpjHypvj5dqQgyIIwf1UoNpL3ewI/NG2cHIKMaRoOowze1Zve+u dA4MzkadVvC3ODr5LlK8P+V52oQzU2KaBG+Iler67FWasctvbG5ZHt/b6zKo0tSABX nenmlNMPMotNhidQkcSz/OPlAtLJ7Fjq/t6fkmderL1Z3oTJil3+8Yd3OkP0Ub2rwD BHMkmILcRLV30XgvOc8RgRAXHBPJqR+llbb1kQUmOqY1Ee9JQQu3wpN6GfsSOX9tEB dCiEdYu5HKxenw/s9N2Fmnud7DuYFzNDtg98eFMYlaeKFIEh/xhZEyvkX7IXBx79qp MJHdzm3Iyr2hg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3B00164C22; Fri, 19 Dec 2025 22:10:31 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 19 Dec 2025 22:10:08 -0700 Message-ID: <20251220051013.3459855-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251220051013.3459855-1-sjg@u-boot.org> References: <20251220051013.3459855-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SW2ZU5MEPKTCSYTGUSHBSSW76N7E4QM3 X-Message-ID-Hash: SW2ZU5MEPKTCSYTGUSHBSSW76N7E4QM3 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 <simon.glass@canonical.com>, Claude <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 2/4] test/py: Use longer timeout for lab-mode restart List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/SW2ZU5MEPKTCSYTGUSHBSSW76N7E4QM3/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Lab fixes
|
|
Commit Message
Simon Glass
Dec. 20, 2025, 5:10 a.m. UTC
From: Simon Glass <simon.glass@canonical.com> When restarting U-Boot in lab mode, ensure_spawned() sets the timeout to TIMEOUT_MS (30 seconds) before calling _wait_for_boot_prompt(). In lab mode, _wait_for_banner() is skipped, so TIMEOUT_PREPARE_MS is never restored. This causes tests that boot into Linux and then restart U-Boot (like test_distro_script) to fail with a timeout if the board takes more than 30 seconds to reset and boot. Fix this by setting the timeout to TIMEOUT_PREPARE_MS (3 minutes) at the start of _wait_for_boot_prompt() when in lab mode. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- test/py/console_base.py | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/test/py/console_base.py b/test/py/console_base.py index 7443c567937..2bfd42746e4 100644 --- a/test/py/console_base.py +++ b/test/py/console_base.py @@ -309,6 +309,8 @@ class ConsoleBase(): try: self.log.info('Waiting for U-Boot to be ready') + if self.lab_mode: + self.timeout = TIMEOUT_PREPARE_MS if not self.lab_mode: self._wait_for_banner(loop_num) self.u_boot_version_string = self.after