mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
Merge branch 'bugfix/idfci-8622-nvs-bootloader-reset-before-expect' into 'release/v6.0'
fix(examples): hard-reset before nvs_bootloader pytest expectations See merge request espressif/esp-idf!48077
This commit is contained in:
@@ -8,6 +8,10 @@ from pytest_embedded_idf.utils import idf_parametrize
|
||||
@pytest.mark.generic
|
||||
@idf_parametrize('target', ['supported_targets'], indirect=['target'])
|
||||
def test_nvs_bootloader_example(dut: Dut) -> None:
|
||||
# Full bootloader hook logs must be visible before app output. On some targets (e.g. ESP32-H2)
|
||||
# the default post-flash boot can finish before the serial capture window aligns; reset once
|
||||
# so expectations always match output from a captured cold boot.
|
||||
dut.serial.hard_reset()
|
||||
# Expect to read hooks messages and data from NVS partition
|
||||
dut.expect_exact('Before reading from NVS partition')
|
||||
dut.expect_exact('Result data. Return code: ESP_OK')
|
||||
|
||||
Reference in New Issue
Block a user