mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-02 10:00:57 +02:00
fix(esp_wifi): fix bin_size_apsta test
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user