Skip to content

Commit

Permalink
hijack.sh: fail when an error is found in firmware logs
Browse files Browse the repository at this point in the history
At last.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb committed Jul 1, 2023
1 parent 111906b commit 2f8bc05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions case-lib/hijack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ function func_exit_handler()
dloge "Empty logfile"
exit_status=1
fi

check_error_in_fw_logfile "$logfile" ||
exit_status=1

else
dloge "Log file not found: $logfile"
exit_status=1
Expand Down
5 changes: 4 additions & 1 deletion case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ check_error_in_fw_logfile()
if (set -x
grep -B 2 -A 1 -i --word-regexp -e 'ERR' -e 'ERROR' -e '<err>' "$1"
); then
return 1
# See internal Intel bug #448
dlogw 'An HTML display bug hides the bracketed Zephyr &lt;loglevels&gt; in this tab,'
dlogw 'switch to the tab with the complete logs to see the log levels.'
return 1
fi
}

Expand Down

0 comments on commit 2f8bc05

Please sign in to comment.