Skip to content

Commit

Permalink
lib.sh: catch some mtrace-reader failures to start thanks to "OSError"
Browse files Browse the repository at this point in the history
This makes tests fail at the end when mtrace-reader.py could be started,
for instance because one is already running (see example below)

Reminder: you can use -s to ignore firmware logs.

Traceback (most recent call last):
  File "mtrace-reader.py", line 20, in <module>
    fd = os.open(MTRACE_FILE, os.O_RDONLY)
OSError: [Errno 16] Device or resource busy: '/sys/kernel/debug/sof/mtrace/core0'

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb committed Apr 26, 2024
1 parent 731b48e commit b36bd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ check_error_in_fw_logfile()
# -B 2 shows the header line when the first etrace message is an ERROR
# -A 1 shows whether the ERROR is last or not.
if (set -x
grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' "$1"
grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' -e OSError "$1"
); then
# See internal Intel bug #448
dlogw 'An HTML display bug hides the bracketed Zephyr &lt;loglevels&gt; in this tab,'
Expand Down

0 comments on commit b36bd94

Please sign in to comment.