mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-04-20 11:29:54 +00:00
SourceForge in particular doesn't like multiple connections from the same IP, but when a source mirror is being populated for the first time this will happen. Our fetch falls back to the Yocto mirror so it doesn't cause a failure, but there is a warning logged which our CI then fails because of. As we don't care about these warnings, filter them out of the log before checking if there were any errors. Change-Id: I36c97c5d9923f1c4d14c4588f3780211cccb57b2 Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
20 lines
436 B
Bash
Executable File
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
|