feat(storage/nvs_flash): add dependencies to nvs_flash test apps

This commit is contained in:
Tomáš Rohlínek 2023-11-28 10:20:15 +01:00
parent a4c80b5fce
commit c276c36dfe
No known key found for this signature in database
GPG Key ID: BDE1CEDD10F7E372
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,17 @@
components/nvs_flash/host_test: components/nvs_flash/host_test:
depends_components:
- spi_flash
- nvs_flash
- nvs_sec_provider
- esp_partition
enable: enable:
- if: IDF_TARGET == "linux" - 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"]

View File

@ -10,8 +10,8 @@ CONFIGS_NVS_ENCR_FLASH_ENC = [
] ]
@pytest.mark.supported_targets @pytest.mark.esp32
@pytest.mark.generic @pytest.mark.esp32c3
@pytest.mark.parametrize('config', ['default'], indirect=True) @pytest.mark.parametrize('config', ['default'], indirect=True)
def test_nvs_flash(dut: IdfDut) -> None: def test_nvs_flash(dut: IdfDut) -> None:
dut.expect_exact('Press ENTER to see the list of tests') dut.expect_exact('Press ENTER to see the list of tests')