forked from espressif/esp-idf
Merge branch 'bugfix/storage_generic_pytests_v5.0' into 'release/v5.0'
fix(ci): Removed storage related entries in known generate test child pipeline warnings (v5.0) See merge request espressif/esp-idf!36688
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
@@ -13,6 +12,7 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
|
@pytest.mark.generic
|
||||||
def test_examples_nvs_rw_blob(dut: Dut) -> None:
|
def test_examples_nvs_rw_blob(dut: Dut) -> None:
|
||||||
def expect_start_msg(index: int) -> None:
|
def expect_start_msg(index: int) -> None:
|
||||||
dut.expect('Restart counter = {}'.format(index), timeout=10)
|
dut.expect('Restart counter = {}'.format(index), timeout=10)
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from itertools import zip_longest
|
from itertools import zip_longest
|
||||||
|
|
||||||
@@ -10,11 +9,14 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
|
@pytest.mark.generic
|
||||||
def test_examples_nvs_rw_value(dut: Dut) -> None:
|
def test_examples_nvs_rw_value(dut: Dut) -> None:
|
||||||
|
dut.serial.erase_flash()
|
||||||
|
dut.serial.flash()
|
||||||
for i, counter_state in zip_longest(range(4), ('The value is not initialized yet!',), fillvalue='Done'):
|
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('Opening Non-Volatile Storage \\(NVS\\) handle... Done', timeout=20)
|
||||||
dut.expect('Reading restart counter from NVS ... {}'.format(counter_state), 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('Updating restart counter in NVS ... Done', timeout=20)
|
||||||
dut.expect('Committing updates in NVS ... Done', timeout=20)
|
dut.expect('Committing updates in NVS ... Done', timeout=20)
|
||||||
dut.expect('Restarting in 10 seconds...', timeout=20)
|
dut.expect('Restarting in 10 seconds...', timeout=20)
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from itertools import zip_longest
|
from itertools import zip_longest
|
||||||
|
|
||||||
@@ -10,11 +9,14 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
def test_examples_nvs_rw_value(dut: Dut) -> None:
|
@pytest.mark.generic
|
||||||
|
def test_examples_nvs_rw_value_cxx(dut: Dut) -> None:
|
||||||
|
dut.serial.erase_flash()
|
||||||
|
dut.serial.flash()
|
||||||
for i, counter_state in zip_longest(range(4), ('The value is not initialized yet!',), fillvalue='Done'):
|
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('Opening Non-Volatile Storage \\(NVS\\) handle... Done', timeout=20)
|
||||||
dut.expect('Reading restart counter from NVS ... {}'.format(counter_state), 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('Updating restart counter in NVS ... Done', timeout=20)
|
||||||
dut.expect('Committing updates in NVS ... Done', timeout=20)
|
dut.expect('Committing updates in NVS ... Done', timeout=20)
|
||||||
dut.expect('Restarting in 10 seconds...', timeout=20)
|
dut.expect('Restarting in 10 seconds...', timeout=20)
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@@ -10,6 +8,7 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
|
@pytest.mark.generic
|
||||||
def test_wear_levelling_example(dut: Dut) -> None:
|
def test_wear_levelling_example(dut: Dut) -> None:
|
||||||
|
|
||||||
message_list = ('example: Mounting FAT filesystem',
|
message_list = ('example: Mounting FAT filesystem',
|
||||||
|
Reference in New Issue
Block a user