Skip to content

Commit

Permalink
tests: logging/dictionary: wait longer for first output
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dcpleung authored and nashif committed Jul 4, 2024
1 parent ddfc39b commit 4ffb813
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 4ffb813

Please sign in to comment.