mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-30 00:21:17 +00:00
78131b1bed
Using a custom logging.yml we can instruct BitBake's logger to write all warnings and errors into a separate log file. Then after the build has finished we can see if the log file is empty and if not show it and abort the build. Change-Id: Ida835b5c822941fb513dfb1758b4ec195e0050fc Signed-off-by: Ross Burton <ross.burton@arm.com>
19 lines
353 B
Bash
Executable File
19 lines
353 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Expects the path to a log file as $1, and if this file has any content
|
|
# then display the contents and exit with an error code.
|
|
|
|
set -e -u
|
|
|
|
LOGFILE=$1
|
|
|
|
if test -s $LOGFILE; then
|
|
echo ==============================
|
|
echo The build had warnings/errors:
|
|
echo ==============================
|
|
cat $LOGFILE
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|