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')