Skip to content

Commit d9497e3

Browse files
committed
tests: drivers: grtc: grtc_reset: fix gettings logs
Timeout works only with regex (or num of lines). Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent c6a55d2 commit d9497e3

File tree

1 file changed

+1
-1
lines changed
  • tests/drivers/grtc/grtc_reset/pytest

1 file changed

+1
-1
lines changed

tests/drivers/grtc/grtc_reset/pytest/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def reset_dut(dut: DeviceAdapter, reset_kind: str = "RESET_PIN"):
2828
logger.info(output)
2929

3030
def get_cycle_and_uptime_from_logs(dut: DeviceAdapter):
31-
lines = dut.readlines_until(timeout=5)
31+
lines = dut.readlines_until(regex=r'.*k_uptime_get.*', timeout=5)
3232
for line in lines:
3333
match_cycle = re.search(r'k_cycle_get_32\s*=\s*(\d+)', line)
3434
if match_cycle:

0 commit comments

Comments
 (0)