util/board_status: Do not display grep message

Redirect stdout and stderr from grep to check for unknown timestamps,
when no timestamps are stored, which is already logged earlier.

    Failed to run "/root/coreboot/util/cbmem/cbmem -t", ignoring
    Getting remote dmesg
    grep: /tmp/coreboot_board_status.dXmbUIBP/emulation/qemu-i440fx/4.14-876-gdb28040ee1/2021-07-02T23_14_33Z/coreboot_timestamps.txt: No such file or directory

Change-Id: Ib5400d4bd17e957b4cc1bf75bbd332d60ad226f5
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56056
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Paul Menzel 2021-07-03 15:44:05 +02:00 committed by Patrick Georgi
parent bb87552c98
commit adface7ace
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ if [ $(grep -- -dirty "${tmpdir}/${results}/coreboot_console.txt") ]; then
exit $EXIT_FAILURE exit $EXIT_FAILURE
fi fi
if [ $(grep -- unknown "${tmpdir}/${results}/coreboot_timestamps.txt") ]; then if [ $(grep -- unknown "${tmpdir}/${results}/coreboot_timestamps.txt" >/dev/null 2>&1) ]; then
echo "Unknown timestamps found in 'coreboot_timestamps.txt'." \ echo "Unknown timestamps found in 'coreboot_timestamps.txt'." \
"Please rebuild the 'cbmem' utility and try again." "Please rebuild the 'cbmem' utility and try again."
exit $EXIT_FAILURE exit $EXIT_FAILURE