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 <michal.smola@nxp.com>
23 lines
639 B
YAML
23 lines
639 B
YAML
sample:
|
|
description: Demonstration of the PWM LED driver
|
|
name: PWM LED sample
|
|
tests:
|
|
sample.drivers.led.led_pwm:
|
|
filter: dt_compat_enabled("pwm-leds")
|
|
tags: LED
|
|
depends_on: pwm
|
|
platform_exclude: reel_board
|
|
timeout: 20
|
|
harness: console
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "Testing LED \\d+"
|
|
- "Turned on"
|
|
- "Turned off"
|
|
- "Increasing brightness gradually"
|
|
- "Blinking on: ([0-9]+) msec, off: ([0-9]+) msec"
|
|
- "(Blinking on: ([0-9]+) msec, off: ([0-9]+) msec|Cycle period not supported)"
|
|
- "Turned off, loop end"
|