File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
tests/subsys/usb/negotiated_speed/pytest Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 55import os
66import subprocess
77import sys
8+ import time
89from typing import Dict
910
11+ from twister_harness import DeviceAdapter
12+
1013USB_SAMPLE_ID : str = "NordicSemiconductor USBD MSC sample"
1114packet_size_vs_speed : Dict [int , str ] = {
1215 64 : "Full Speed" ,
@@ -32,14 +35,18 @@ def excute_command(
3235 ).decode (sys .getdefaultencoding ())
3336
3437
35- def test_usb_negotaited_speed ():
38+ def test_usb_negotaited_speed (dut : DeviceAdapter ):
3639 """
3740 Test the USB device negotiated speed
3841 The nrf54h20 and nrf54lm20 devices
3942 must attach as High Speed USB device
4043 """
44+ # wait for enumeration
45+ time .sleep (2 )
46+
4147 usb_devices : str = excute_command ("lsusb" )
4248 logger .info (usb_devices )
49+ dut .readlines ()
4350
4451 failure_info : str = f"{ USB_SAMPLE_ID } not found in the USB devices"
4552
You can’t perform that action at this time.
0 commit comments