Skip to content

Commit 07765cd

Browse files
fix(usb_host): Fix msc example pytest to support external hub
1 parent 771e9db commit 07765cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/peripherals/usb/host/msc/pytest_usb_host_msc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_usb_host_msc_example(dut: Dut) -> None:
1313
max_packet_size = int(dut.expect(r'wMaxPacketSize (\d{2,3})')[1].decode())
1414

1515
# Check result of file_operations()
16-
dut.expect_exact("example: Read from file '/usb/esp/test.txt': 'Hello World!'")
16+
dut.expect(r"example: Read from file '/usb[0-9]/esp/test.txt': 'Hello World!'")
1717

1818
# Check result of speed_test()
1919
write_throughput = float(dut.expect(r'example: Write speed ([0-9]*[.]?[0-9]+) MiB')[1].decode())

0 commit comments

Comments
 (0)