Skip to content

Commit 736e79d

Browse files
kv2019imarc-hb
authored andcommitted
check-sof-logger: fix cavstool banner check
The test started failing with recent Zephyr upstream due to combination of use of "asyncio.get_event_loop().run_until_complete(main())" in cavstool.py , which triggers a deprecation warning on Python 3.10 and newer. Make the cavstool check more robust by checking for multiple lines of text in cavstool output for the tool banner. Suggested-by: Marc Herbert <marc.herbert@intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 9fa377c commit 736e79d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test-case/check-sof-logger.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ main()
231231
boot_banner='dma-trace.c.*FW ABI.*tag.*hash'
232232
fi
233233

234-
head -n 1 "$tracef" | grep -q "$tool_banner" ||
234+
head -n 5 "$tracef" | grep -q "$tool_banner" ||
235235
print_logs_exit 1 "Log header not found in ${tracef}"
236236

237237
# See initial message SOF PR #3281 / SOF commit 67a0a69

0 commit comments

Comments
 (0)