From 07765cde508da2ab87e0f15d71e11c5a00cd17a1 Mon Sep 17 00:00:00 2001 From: "peter.marcisovsky" Date: Fri, 11 Apr 2025 17:25:30 +0200 Subject: [PATCH] fix(usb_host): Fix msc example pytest to support external hub --- examples/peripherals/usb/host/msc/pytest_usb_host_msc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/peripherals/usb/host/msc/pytest_usb_host_msc.py b/examples/peripherals/usb/host/msc/pytest_usb_host_msc.py index 6ee2bbdd00..a2c73d8362 100644 --- a/examples/peripherals/usb/host/msc/pytest_usb_host_msc.py +++ b/examples/peripherals/usb/host/msc/pytest_usb_host_msc.py @@ -13,7 +13,7 @@ def test_usb_host_msc_example(dut: Dut) -> None: max_packet_size = int(dut.expect(r'wMaxPacketSize (\d{2,3})')[1].decode()) # Check result of file_operations() - dut.expect_exact("example: Read from file '/usb/esp/test.txt': 'Hello World!'") + dut.expect(r"example: Read from file '/usb[0-9]/esp/test.txt': 'Hello World!'") # Check result of speed_test() write_throughput = float(dut.expect(r'example: Write speed ([0-9]*[.]?[0-9]+) MiB')[1].decode())