Skip to content

Commit 593f442

Browse files
michal-smoladkalowsk
authored andcommitted
samples: led: pwm: fix console harness regex
Led blinking period was made configurable and time unit changed from sec to msec recently in the source code of the sample. Console harness regex was not changed accordingly in sample.yaml. Device testing fails when run with twister. Change the regex to accept any period and change the units to msec. Signed-off-by: Michal Smola <[email protected]>
1 parent f59e247 commit 593f442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/drivers/led/pwm/sample.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ tests:
1717
- "Turned on"
1818
- "Turned off"
1919
- "Increasing brightness gradually"
20-
- "Blinking on: 0.1 sec, off: 0.1 sec"
21-
- "(Blinking on: 1 sec, off: 1 sec|Cycle period not supported)"
20+
- "Blinking on: ([0-9]+) msec, off: ([0-9]+) msec"
21+
- "(Blinking on: ([0-9]+) msec, off: ([0-9]+) msec|Cycle period not supported)"
2222
- "Turned off, loop end"

0 commit comments

Comments
 (0)