summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2020-03-14 17:36:10 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-25 20:03:03 +0000
commit5e20c1cbc841ca2174cdc025fa4ce95d3d717c29 (patch)
tree9a25d36fb8270c545be62b324b17725416783728
parent65f05505a6b7e9e1e9b45c9f6aae34fccd7a7f32 (diff)
downloadcoreboot-5e20c1cbc841ca2174cdc025fa4ce95d3d717c29.tar.xz
util/board-status: Reject logs from dirty images
Currently, there are a lot of uploads in the board status repository, where the logs say, that the coreboot image or payload were built from a dirty source tree. Add a check to reject such uploads. Change-Id: I920e26a10f74e1f3b9b4e5f8c9284c59692a519b Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39562 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rwxr-xr-xutil/board_status/board_status.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 6d6854d071..a990ce505e 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -426,6 +426,13 @@ else
echo "Getting coreboot boot log"
cmd $LOCAL "$cbmem_cmd -1" "${tmpdir}/${results}/coreboot_console.txt"
+ if [ $(grep -- -dirty "${tmpdir}/${results}/coreboot_console.txt") ]; then
+ echo "coreboot or the payload are built from a source tree in a" \
+ "dirty state, making it hard to reproduce the result. Please" \
+ "check in your source tree with 'git status'."
+ exit $EXIT_FAILURE
+ fi
+
echo "Getting timestamp data"
cmd_nonfatal $LOCAL "$cbmem_cmd -t" "${tmpdir}/${results}/coreboot_timestamps.txt"