test/py: Reset the console timeout value
authorBin Meng <bmeng.cn@gmail.com>
Tue, 17 May 2022 15:24:43 +0000 (23:24 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 26 May 2022 14:27:14 +0000 (10:27 -0400)
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@gmail.com>
test/py/u_boot_console_base.py

index 58ec859..26b6de0 100644 (file)
@@ -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')