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:
parent
65f05505a6
commit
5e20c1cbc8
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue