pytest_efuse.py 801 B

1234567891011121314151617181920212223242526272829
  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.expect_exact('Press ENTER to see the list of tests')
  14. dut.write('*')
  15. dut.expect_unity_test_output(timeout=200)
  16. @pytest.mark.qemu
  17. @pytest.mark.esp32
  18. def test_efuse_qemu(dut: Dut) -> None:
  19. dut.expect_exact('Press ENTER to see the list of tests')
  20. # dut may not be ready to accept input, so adding the delay until handled in pytest embedded (RDT-328)
  21. sleep(1)
  22. dut.write('*')
  23. dut.expect_unity_test_output(timeout=200)