From 593f4423ab7e9245603c93e02e73f1ba6d9597af Mon Sep 17 00:00:00 2001 From: Michal Smola Date: Wed, 30 Oct 2024 08:21:09 +0100 Subject: [PATCH] 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 --- samples/drivers/led/pwm/sample.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/drivers/led/pwm/sample.yaml b/samples/drivers/led/pwm/sample.yaml index fe9a3845ffb..21d27c0d6a9 100644 --- a/samples/drivers/led/pwm/sample.yaml +++ b/samples/drivers/led/pwm/sample.yaml @@ -17,6 +17,6 @@ tests: - "Turned on" - "Turned off" - "Increasing brightness gradually" - - "Blinking on: 0.1 sec, off: 0.1 sec" - - "(Blinking on: 1 sec, off: 1 sec|Cycle period not supported)" + - "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"