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>
This commit is contained in:
Bin Meng 2022-05-17 23:24:43 +08:00 committed by Tom Rini
parent 661f540075
commit 7bb683513c

View 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')