pytest_custom_bootloader_override.py 712 B

12345678910111213141516171819
  1. # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. from pytest_embedded_idf.app import IdfApp
  6. @pytest.mark.supported_targets
  7. @pytest.mark.generic
  8. def test_custom_bootloader_impl_example(app: IdfApp, dut: Dut) -> None:
  9. # Expect to read a message from the custom bootloader
  10. # This message is defined in the Kconfig file, retrieve it while deleting
  11. # leading and trailing quotes (")
  12. welcome_message = app.sdkconfig['EXAMPLE_BOOTLOADER_WELCOME_MESSAGE']
  13. dut.expect_exact(welcome_message)
  14. # Expect to read a message from the user application
  15. dut.expect_exact('Application started!')