From c276c36dfebfe0023b4c4461754c93e6f436d27e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Rohl=C3=ADnek?= Date: Tue, 28 Nov 2023 10:20:15 +0100 Subject: [PATCH] feat(storage/nvs_flash): add dependencies to nvs_flash test apps --- components/nvs_flash/.build-test-rules.yml | 14 ++++++++++++++ components/nvs_flash/test_apps/pytest_nvs_flash.py | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/components/nvs_flash/.build-test-rules.yml b/components/nvs_flash/.build-test-rules.yml index 93b76378a9..3902727a71 100644 --- a/components/nvs_flash/.build-test-rules.yml +++ b/components/nvs_flash/.build-test-rules.yml @@ -1,3 +1,17 @@ components/nvs_flash/host_test: + depends_components: + - spi_flash + - nvs_flash + - nvs_sec_provider + - esp_partition enable: - if: IDF_TARGET == "linux" + +components/nvs_flash/test_apps: + depends_components: + - spi_flash + - nvs_flash + - nvs_sec_provider + - esp_partition + disable_test: + - if: IDF_TARGET not in ["esp32", "esp32c3"] diff --git a/components/nvs_flash/test_apps/pytest_nvs_flash.py b/components/nvs_flash/test_apps/pytest_nvs_flash.py index 174664912e..02d8e0747c 100644 --- a/components/nvs_flash/test_apps/pytest_nvs_flash.py +++ b/components/nvs_flash/test_apps/pytest_nvs_flash.py @@ -10,8 +10,8 @@ CONFIGS_NVS_ENCR_FLASH_ENC = [ ] -@pytest.mark.supported_targets -@pytest.mark.generic +@pytest.mark.esp32 +@pytest.mark.esp32c3 @pytest.mark.parametrize('config', ['default'], indirect=True) def test_nvs_flash(dut: IdfDut) -> None: dut.expect_exact('Press ENTER to see the list of tests')