From a91553223491c488994342af5883bdc1321b8184 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 6 Jul 2021 16:43:36 +0100 Subject: [PATCH] ci/check-warnings: ignore warnings that we're using the mirror 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 Signed-off-by: Jon Mason --- ci/check-warnings | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/check-warnings b/ci/check-warnings index cc396423..89ae955d 100755 --- a/ci/check-warnings +++ b/ci/check-warnings @@ -7,7 +7,8 @@ set -e -u LOGFILE=$1 -if test -s $LOGFILE; then +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 ==============================