diff --git a/samples/drivers/rtc/README.rst b/samples/drivers/rtc/README.rst index 726771535c889b..4b9e30ed869127 100644 --- a/samples/drivers/rtc/README.rst +++ b/samples/drivers/rtc/README.rst @@ -27,8 +27,7 @@ Sample Output .. code-block:: console - RTC date and time: 2024-11-17 04:21:47 - RTC date and time: 2024-11-17 04:21:48 - RTC date and time: 2024-11-17 04:21:49 + RTC date and time: 2024-11-17 04:19:00 + RTC date and time: 2024-11-17 04:19:01 diff --git a/samples/drivers/rtc/sample.yaml b/samples/drivers/rtc/sample.yaml index 10f0a08c463674..b7dbd755a7e78b 100644 --- a/samples/drivers/rtc/sample.yaml +++ b/samples/drivers/rtc/sample.yaml @@ -4,9 +4,16 @@ tests: sample.drivers.rtc: platform_allow: - stm32f3_disco + integration_platforms: + - stm32f3_disco tags: - samples - rtc - api depends_on: - rtc + harness: console + harness_config: + type: one_line + regex: + - "RTC date and time: 2024-11-17 04:19:01"