From f31b08dbfc72c83b617e819af51969e518074f0b Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Fri, 13 Mar 2026 19:04:54 +0800 Subject: [PATCH] feat(esp_hw_support): add sleep_reentent UT case back --- .../sleep_retention/pytest_retention.py | 20 +++++++++++++++++++ ...onfig.ci.defaults => sdkconfig.ci.default} | 0 2 files changed, 20 insertions(+) create mode 100644 components/esp_hw_support/test_apps/sleep_retention/pytest_retention.py rename components/esp_hw_support/test_apps/sleep_retention/{sdkconfig.ci.defaults => sdkconfig.ci.default} (100%) diff --git a/components/esp_hw_support/test_apps/sleep_retention/pytest_retention.py b/components/esp_hw_support/test_apps/sleep_retention/pytest_retention.py new file mode 100644 index 00000000000..563e9e4ca00 --- /dev/null +++ b/components/esp_hw_support/test_apps/sleep_retention/pytest_retention.py @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: CC0-1.0 +import pytest +from pytest_embedded import Dut +from pytest_embedded_idf.utils import idf_parametrize +from pytest_embedded_idf.utils import soc_filtered_targets + + +@pytest.mark.generic +@pytest.mark.parametrize( + 'config', + [ + 'default', + 'xip_psram', + ], + indirect=True, +) +@idf_parametrize('target', soc_filtered_targets('SOC_PAU_SUPPORTED == 1'), indirect=['target']) +def test_sleep_retention(dut: Dut) -> None: + dut.run_all_single_board_cases() diff --git a/components/esp_hw_support/test_apps/sleep_retention/sdkconfig.ci.defaults b/components/esp_hw_support/test_apps/sleep_retention/sdkconfig.ci.default similarity index 100% rename from components/esp_hw_support/test_apps/sleep_retention/sdkconfig.ci.defaults rename to components/esp_hw_support/test_apps/sleep_retention/sdkconfig.ci.default