1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-12 03:10:15 +00:00
Files
meta-arm/ci/check-warnings
Jon Mason 8601ba85f7 Revert "ci: ignore distutil warnings"
This reverts commit 63cb70be72.

Signed-off-by: Jon Mason <jon.mason@arm.com>
2022-01-20 11:41:44 -05:00

20 lines
436 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
LINES=$(grep --invert-match "attempting MIRRORS if available" $LOGFILE | wc -l)
if test "$LINES" -ne 0; then
echo ==============================
echo The build had warnings/errors:
echo ==============================
cat $LOGFILE
exit 1
fi
exit 0