ci: increase test_wifi_power_save got ip timeout

This commit is contained in:
Chen Yudong 2024-09-14 11:26:54 +08:00 committed by wuzhenghui
parent 7563ae5e70
commit 00cd226fd4
No known key found for this signature in database
GPG Key ID: 3EFEDECDEBA39BB9

View File

@ -1,6 +1,5 @@
# SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import logging
import pexpect
@ -9,7 +8,7 @@ from common_test_methods import get_env_config_variable
from pytest_embedded import Dut
bad_event_str = [
'bcn_timout',
'bcn_timeout',
'm f probe req l',
'abort() was called',
'Guru Meditation Error',
@ -31,7 +30,7 @@ def _run_test(dut: Dut) -> None:
pass
try:
dut.expect(r'got ip: (\d+\.\d+\.\d+\.\d+)[^\d]', timeout=20)
dut.expect(r'got ip: (\d+\.\d+\.\d+\.\d+)[^\d]', timeout=30)
log_after_got_ip = dut.expect(pexpect.TIMEOUT, timeout=10).decode()
if any(s in log_after_got_ip for s in bad_event_str):
logging.info('Abnormal connection log:')