Timothy Pearson (tpearson@raptorengineeringinc.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14514
-gerrit
commit 94a0b5157322f0ac401dc2376e43e4de025ce885 Author: Timothy Pearson tpearson@raptorengineeringinc.com Date: Mon Apr 25 13:33:06 2016 -0500
board_status/to-wiki: Fix background color of very recent test results
Test results under 16 days old display with an incorrect background color due to the leading zero not being preset in the associated HTML color code.
Add the leading zero where needed to generate a valid HTML color code.
Change-Id: I0dfe29ec1afc409a4908073922ac31a4091f0f1f Signed-off-by: Timothy Pearson tpearson@raptorengineeringinc.com --- util/board_status/to-wiki/towiki.sh | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/util/board_status/to-wiki/towiki.sh b/util/board_status/to-wiki/towiki.sh index d9ec064..3fec386 100755 --- a/util/board_status/to-wiki/towiki.sh +++ b/util/board_status/to-wiki/towiki.sh @@ -427,6 +427,9 @@ EOF fi fi lastgood_diff_hex=$(echo "obase=16; $lastgood_diff" | bc) + if [ "$lastgood_diff" -lt 16 ]; then + lastgood_diff_hex="0${lastgood_diff_hex}" + fi cell_bgcolor="#${lastgood_diff_hex}ff00" echo "| style="background:${cell_bgcolor}" | [[#$vendor/$board|$lastgood]]" fi