pytest_efuse.py 712 B

123456789101112131415161718192021222324252627
  1. # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: Unlicense OR CC0-1.0
  3. from time import sleep
  4. import pytest
  5. from pytest_embedded import Dut
  6. @pytest.mark.esp32
  7. @pytest.mark.esp32c2
  8. @pytest.mark.esp32c3
  9. @pytest.mark.esp32c6
  10. @pytest.mark.esp32h2
  11. @pytest.mark.generic
  12. def test_efuse(dut: Dut) -> None:
  13. dut.run_all_single_board_cases()
  14. @pytest.mark.qemu
  15. @pytest.mark.esp32
  16. def test_efuse_qemu(dut: Dut) -> None:
  17. dut.expect_exact('Press ENTER to see the list of tests')
  18. # dut may not be ready to accept input, so adding the delay until handled in pytest embedded (RDT-328)
  19. sleep(1)
  20. dut.write('*')
  21. dut.expect_unity_test_output(timeout=200)