mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
efuse: enable qemu tests
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# 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
|
||||||
|
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
@@ -14,3 +16,13 @@ def test_efuse(dut: Dut) -> None:
|
|||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
dut.write('*')
|
dut.write('*')
|
||||||
dut.expect_unity_test_output(timeout=200)
|
dut.expect_unity_test_output(timeout=200)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.qemu
|
||||||
|
@pytest.mark.esp32
|
||||||
|
def test_efuse_qemu(dut: Dut) -> None:
|
||||||
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
|
# dut may not be ready to accept input, so adding the delay until handled in pytest embedded (RDT-328)
|
||||||
|
sleep(1)
|
||||||
|
dut.write('*')
|
||||||
|
dut.expect_unity_test_output(timeout=200)
|
||||||
|
Reference in New Issue
Block a user