summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2022-05-17 23:24:43 +0800
committerTom Rini <trini@konsulko.com>2022-05-26 10:27:14 -0400
commit7bb683513c8d910aae10353fbea31969fe85f3a4 (patch)
treed6063004ffcd64ea1ba35e072f0423ae19cc7c97 /test
parent661f5400754750df4104b6466942c8b62897340d (diff)
test/py: Reset the console timeout value
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>
Diffstat (limited to 'test')
-rw-r--r--test/py/u_boot_console_base.py4
1 files changed, 4 insertions, 0 deletions
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')