From 80e047a82478b9b62ec82c2c72022b13681fbe21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= Date: Thu, 9 Oct 2025 11:12:27 +0000 Subject: [PATCH] ci: labgrid: wnc-freedom: fix failing login prompt detection by increasing timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems, that recent changes in init scripts are causing different behavior of serial console, thus the current timeout of 75s for login prompt detection is not enough anymore: File "/usr/local/lib/python3.7/dist-packages/labgrid-0.4.1.dev239+g1ca30de-py3.7.egg/labgrid/driver/shelldriver.py", line 210, in _await_login raise TIMEOUT(f"Timeout of {self.login_timeout} seconds exceeded during waiting for login") # pylint: disable=line-too-long pexpect.exceptions.TIMEOUT: Timeout of 75 seconds exceeded during waiting for login Currently it needs 77s: expect state='stop', result=(0, b"crond[5305]: crond (busybox 1.36.1) started, log level 5\r\ncrond[5305]: ignoring file 'logrotate' (no such user)\r\n\r\n", , b'root@prplOS:~# '), duration=0.004 _await_login state='stop', duration=77.550 So lets increase the timeout to 80s. References: PCF-1990, FEAT-67 Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/11649231947 Signed-off-by: Petr Štetiar --- .testbed/labgrid/default.yaml | 4 ++-- .testbed/labgrid/testbed-02.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.testbed/labgrid/default.yaml b/.testbed/labgrid/default.yaml index ebd30c0fb7..1850d70ed8 100644 --- a/.testbed/labgrid/default.yaml +++ b/.testbed/labgrid/default.yaml @@ -92,7 +92,7 @@ targets: console_ready: Please press Enter to activate this console. prompt: 'root@[\w()]+:[^ ]+ ' login_prompt: built-in shell (ash) - login_timeout: 75 + login_timeout: 80 await_login_timeout: 16 username: kingbanik UBootDriver: @@ -117,7 +117,7 @@ targets: console_ready: Please press Enter to activate this console. prompt: 'root@[\w()]+:[^ ]+ ' login_prompt: built-in shell (ash) - login_timeout: 75 + login_timeout: 80 await_login_timeout: 16 username: kingbanik UBootDriver: diff --git a/.testbed/labgrid/testbed-02.yaml b/.testbed/labgrid/testbed-02.yaml index 935a1a5f53..3b641cc8c2 100644 --- a/.testbed/labgrid/testbed-02.yaml +++ b/.testbed/labgrid/testbed-02.yaml @@ -112,7 +112,7 @@ targets: console_ready: Please press Enter to activate this console. prompt: 'root@[\w()]+:[^ ]+ ' login_prompt: built-in shell (ash) - login_timeout: 75 + login_timeout: 80 await_login_timeout: 16 username: kingbanik UBootDriver: @@ -174,7 +174,7 @@ targets: console_ready: Please press Enter to activate this console. prompt: 'root@[\w()]+:[^ ]+ ' login_prompt: built-in shell (ash) - login_timeout: 75 + login_timeout: 80 await_login_timeout: 16 username: kingbanik UBootDriver: