[PATCH 1/3] test/py: Reset the console timeout value

Bin Meng bmeng.cn at gmail.com
Tue May 17 17:24:43 CEST 2022


Reset the console timeout value as some tests may change its default
value during the execution.

This fixes the random case timeout issue seen in the U-Boot CI.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 test/py/u_boot_console_base.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py
index 58ec859b34..26b6de07f8 100644
--- a/test/py/u_boot_console_base.py
+++ b/test/py/u_boot_console_base.py
@@ -400,6 +400,10 @@ class ConsoleBase(object):
         """
 
         if self.p:
+            # Reset the console timeout value as some tests may change
+            # its default value during the execution
+            if not self.config.gdbserver:
+                self.p.timeout = 30000
             return
         try:
             self.log.start_section('Starting U-Boot')
-- 
2.25.1



More information about the U-Boot mailing list