fix(esp_wifi): fix bin_size_apsta test

This commit is contained in:
Alexey Lapshin
2025-08-19 20:58:40 +07:00
parent 6ed3fe13ca
commit 73edc2903b

View File

@@ -1,8 +1,7 @@
# SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD # SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0 # SPDX-License-Identifier: Unlicense OR CC0-1.0
import os import os
from typing import Callable from collections.abc import Callable
from typing import Tuple
import pytest import pytest
from pytest_embedded import Dut from pytest_embedded import Dut
@@ -14,17 +13,17 @@ SAVE_BIN_SIZE_TH = {
'esp32': 16600, 'esp32': 16600,
'esp32c2': 19700, 'esp32c2': 19700,
'esp32c3': 19600, 'esp32c3': 19600,
'esp32c5': 19650, 'esp32c5': 17800,
'esp32c6': 19650, 'esp32c6': 19650,
'esp32c61': 19700, 'esp32c61': 17800,
'esp32s2': 16600, 'esp32s2': 16600,
'esp32s3': 16550, 'esp32s3': 16550,
'default': 16000, 'default': 16000,
}, },
'disable_nan': { 'disable_nan': {
'esp32': 29600, 'esp32': 29600,
'esp32c5': 32000, 'esp32c5': 31700,
'esp32c61': 32000, 'esp32c61': 31600,
'esp32s2': 28000, 'esp32s2': 28000,
# other chips does not support nan # other chips does not support nan
'default': 0, 'default': 0,
@@ -56,8 +55,8 @@ def _get_diff_th(
indirect=['target'], indirect=['target'],
) )
def test_wifi_bin_size_apsta( def test_wifi_bin_size_apsta(
dut: Tuple[Dut, Dut], dut: tuple[Dut, Dut],
config: Tuple[str, str], config: tuple[str, str],
log_performance: Callable[[str, object], None], log_performance: Callable[[str, object], None],
) -> None: ) -> None:
# dut logs are not needed # dut logs are not needed