Skip to content

Commit d21d179

Browse files
committed
samples: subsys: usb: dfu-next: Add console harness to check expected message
- Added harness configuration to the sample.usbd.dfu test to avoid failing results on the bench report. - Configured the console harness with a one_line type and a regex pattern to match the "USB DFU sample is initialized" log message. - Ensures the test passes if the expected log message is found in the console output. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent 3fa0cd5 commit d21d179

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples/subsys/usb/dfu-next/sample.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ tests:
1515
- mimxrt685_evk/mimxrt685s/cm33
1616
- mimxrt1060_evk/mimxrt1062/qspi
1717
tags: usb
18+
harness: console
19+
harness_config:
20+
type: one_line
21+
regex:
22+
- "USB DFU sample is initialized"
1823
sample.usbd.dfu-flash:
1924
platform_allow:
2025
- nrf52840dk/nrf52840

0 commit comments

Comments
 (0)