Commit 4ffb8131 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

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: default avatarDaniel Leung <daniel.leung@intel.com>
parent ddfc39bd
Loading
Loading
Loading
Loading
+4 −2
Changes for tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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]