kopia lustrzana https://github.com/espressif/esp-idf
19 wiersze
607 B
Python
19 wiersze
607 B
Python
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
import pytest
|
|
from pytest_embedded import Dut
|
|
|
|
|
|
@pytest.mark.esp32s2
|
|
@pytest.mark.esp32s3
|
|
@pytest.mark.esp32p4
|
|
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='lack of runners with usb_device tag')
|
|
@pytest.mark.usb_device
|
|
def test_usb_device_msc_example(dut: Dut) -> None:
|
|
dut.expect('Mount storage')
|
|
dut.expect('TinyUSB Driver installed')
|
|
dut.expect('USB MSC initialization DONE')
|
|
dut.expect(dut.target + '>')
|
|
dut.write('status')
|
|
dut.expect('storage exposed over USB')
|