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>
This commit is contained in:
Paul Menzel 2020-03-14 17:36:10 +01:00 committed by Patrick Georgi
parent 65f05505a6
commit 5e20c1cbc8
1 changed files with 7 additions and 0 deletions

View File

@ -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"