From 4ffb813110c1e7907e37e7ac5860c3e9782fa064 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Tue, 2 Jul 2024 17:04:31 -0700 Subject: [PATCH] tests: logging/dictionary: wait longer for first output Some hardware takes longer to boot before any output is visible from the app. So lengthen the initial timeout on waiting for any output. Signed-off-by: Daniel Leung --- .../logging/dictionary/pytest/test_logging_dictionary.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py b/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py index 88b8e958900fbd..6ff5ae3edd6e07 100644 --- a/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py +++ b/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py @@ -38,8 +38,10 @@ def process_logs(dut: DeviceAdapter, build_dir): logger.info(f'Dictionary JSON: {dictionary_json}') # Read the encoded logs and save them to a file - # as the log parser requires file as input - handler_output = dut.readlines_until(regex = '.*##ZLOGV1##[0-9]+', timeout = 10.0) + # as the log parser requires file as input. + # Timeout is intentionally long. Twister will + # timeout earlier with per-test timeout. + handler_output = dut.readlines_until(regex = '.*##ZLOGV1##[0-9]+', timeout = 600.0) encoded_logs = handler_output[-1]