summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-11-13 11:42:33 -0700
committerMartin L Roth <gaumless@gmail.com>2022-11-21 18:40:55 +0000
commitb04eda2ca1f5a40edcabd4933c9d0e6e120f6db0 (patch)
treea6f72f478fb9c5041fd1ebb1461b35ba1b179ca6
parent24ca80aab6f5e001c5ce2ac5e8c29e8664215861 (diff)
downloadcoreboot-b04eda2ca1f5a40edcabd4933c9d0e6e120f6db0.tar.gz
coreboot-b04eda2ca1f5a40edcabd4933c9d0e6e120f6db0.tar.bz2
coreboot-b04eda2ca1f5a40edcabd4933c9d0e6e120f6db0.zip
util/abuild: check for PASSED_BOARDS before trying to show it
If no boards are tested by abuild, an error is currently shown because no boards failed, but no boards passed either. Account for this possibility. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I097d3c728ca1acc652d5a1b7b49e57d01b0e513b Reviewed-on: https://review.coreboot.org/c/coreboot/+/69520 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
-rwxr-xr-xutil/abuild/abuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 43dd83335f5b..3326a217da3b 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -945,8 +945,10 @@ if [ "$recursive" = "false" ]; then
if [ "$exitcode" != "0" ]; then
failed=1
fi
- else
+ elif [ -f "$PASSED_BOARDS" ]; then
printf "All %s tested configurations passed.\n" "$( wc -l < "$PASSED_BOARDS" )"
+ else
+ printf "No boards tested.\n"
fi
fi