Skip to content

Commit

Permalink
tests: logging/dictionary: fix pytest log header regex
Browse files Browse the repository at this point in the history
When doing device testing, there may be some other characters
being printed before the dictionary logging header string.
So change the regex to ignore those characters.

Fixes zephyrproject-rtos#75253

Signed-off-by: Daniel Leung <[email protected]>
  • Loading branch information
dcpleung committed Jul 1, 2024
1 parent 0eb612b commit b646123
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def process_logs(dut: DeviceAdapter, build_dir):

# 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)
handler_output = dut.readlines_until(regex = '.*##ZLOGV1##[0-9]+', timeout = 10.0)

encoded_logs = handler_output[-1]

Expand Down

0 comments on commit b646123

Please sign in to comment.