mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
fix(ci): Removed storage related ignore warnings
This commit is contained in:
parent
48e11e68a1
commit
0c69545f30
@ -10,7 +10,8 @@ CONFIGS_NVS_ENCR_FLASH_ENC = [
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.supported_targets
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.esp32c3
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', ['default'], indirect=True)
|
||||
def test_nvs_flash(dut: IdfDut) -> None:
|
||||
|
@ -18,7 +18,6 @@ def test_vfs_default(dut: Dut) -> None:
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.esp32s2
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', [
|
||||
'ccomp',
|
||||
|
@ -1,6 +1,5 @@
|
||||
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
|
||||
import logging
|
||||
import random
|
||||
import re
|
||||
@ -13,6 +12,7 @@ from pytest_embedded import Dut
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.esp32c3
|
||||
@pytest.mark.generic
|
||||
def test_examples_nvs_rw_blob(dut: Dut) -> None:
|
||||
def expect_start_msg(index: int) -> None:
|
||||
dut.expect('Restart counter = {}'.format(index), timeout=10)
|
||||
|
@ -1,6 +1,5 @@
|
||||
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
|
||||
import logging
|
||||
from itertools import zip_longest
|
||||
|
||||
@ -10,11 +9,12 @@ from pytest_embedded import Dut
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.esp32c3
|
||||
@pytest.mark.generic
|
||||
def test_examples_nvs_rw_value(dut: Dut) -> None:
|
||||
for i, counter_state in zip_longest(range(4), ('The value is not initialized yet!',), fillvalue='Done'):
|
||||
dut.expect('Opening Non-Volatile Storage \\(NVS\\) handle... Done', timeout=20)
|
||||
dut.expect('Reading restart counter from NVS ... {}'.format(counter_state), timeout=20)
|
||||
dut.expect('Restart counter = {}'.format(i) if i > 0 else '', timeout=20)
|
||||
dut.expect('Restart counter = {}'.format(i) if int(i) > 0 else '', timeout=20)
|
||||
dut.expect('Updating restart counter in NVS ... Done', timeout=20)
|
||||
dut.expect('Committing updates in NVS ... Done', timeout=20)
|
||||
dut.expect('Restarting in 10 seconds...', timeout=20)
|
||||
|
@ -1,6 +1,5 @@
|
||||
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
|
||||
import logging
|
||||
from itertools import zip_longest
|
||||
|
||||
@ -10,11 +9,12 @@ from pytest_embedded import Dut
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.esp32c3
|
||||
@pytest.mark.generic
|
||||
def test_examples_nvs_rw_value_cxx(dut: Dut) -> None:
|
||||
for i, counter_state in zip_longest(range(4), ('The value is not initialized yet!',), fillvalue='Done'):
|
||||
dut.expect('Opening Non-Volatile Storage \\(NVS\\) handle... Done', timeout=20)
|
||||
dut.expect('Reading restart counter from NVS ... {}'.format(counter_state), timeout=20)
|
||||
dut.expect('Restart counter = {}'.format(i) if i > 0 else '', timeout=20)
|
||||
dut.expect('Restart counter = {}'.format(i) if int(i) > 0 else '', timeout=20)
|
||||
dut.expect('Updating restart counter in NVS ... Done', timeout=20)
|
||||
dut.expect('Committing updates in NVS ... Done', timeout=20)
|
||||
dut.expect('Restarting in 10 seconds...', timeout=20)
|
||||
|
@ -105,7 +105,7 @@ void app_main(void)
|
||||
ESP_LOGI(TAG, "file still exists");
|
||||
return;
|
||||
} else {
|
||||
ESP_LOGI(TAG, "file doesnt exist, format done");
|
||||
ESP_LOGI(TAG, "file does not exist, format done");
|
||||
}
|
||||
|
||||
//Create file and write
|
||||
|
@ -1,7 +1,5 @@
|
||||
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
|
||||
|
||||
import re
|
||||
|
||||
import pytest
|
||||
@ -10,6 +8,7 @@ from pytest_embedded import Dut
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.esp32c3
|
||||
@pytest.mark.generic
|
||||
def test_wear_levelling_example(dut: Dut) -> None:
|
||||
|
||||
message_list = ('example: Mounting FAT filesystem',
|
||||
@ -18,7 +17,7 @@ def test_wear_levelling_example(dut: Dut) -> None:
|
||||
'example: Reading file',
|
||||
re.compile(str.encode('example: Read from file: \'hello world, from ESP-IDF \\S+\'')),
|
||||
re.compile(str.encode('vfs_fat_spiflash: Formatting FATFS partition, allocation unit size=\\S+')),
|
||||
'example: file doesnt exist, format done',
|
||||
'example: file does not exist, format done',
|
||||
'example: Opening file',
|
||||
'example: File written',
|
||||
'example: Reading file',
|
||||
|
@ -0,0 +1,21 @@
|
||||
# This is the file that contains the known warnings for the generate_test_child_pipeline.py script.
|
||||
# no_env_marker_test_cases: List of test cases that do not have environment markers.
|
||||
# each item shall be the test node id, you may check the error message to get the node id.
|
||||
no_env_marker_test_cases:
|
||||
- dummy_test_case
|
||||
|
||||
# no_runner_tags: List of runner tags that has no test runner set.
|
||||
# each item shall be a comma separated list of runner tags.
|
||||
# NOTE:
|
||||
# 1. for multi dut tests, the runner tag shall be <target>_<count>, e.g. esp32_2 instead of esp32,esp32
|
||||
# 2. don't have spaces in the comma separated list.
|
||||
no_runner_tags:
|
||||
- esp32,ip101
|
||||
- esp32c2,jtag,xtal_40mhz
|
||||
- esp32c3,flash_multi
|
||||
- esp32c3,sdcard_sdmode
|
||||
- esp32c6,jtag
|
||||
- esp32h2,jtag
|
||||
- esp32p4,jtag
|
||||
- esp32s2,usb_host_flash_disk
|
||||
|
Loading…
x
Reference in New Issue
Block a user