diff options
author | Timothy Pearson <tpearson@raptorengineeringinc.com> | 2016-04-25 13:33:06 -0500 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineeringinc.com> | 2016-04-26 20:50:07 +0200 |
commit | c410b183370609b58db5d8d94c527bddb3c79447 (patch) | |
tree | 8ba29e3ac5eb8fc9dc7963bf4c6ec80983064b92 /util/board_status | |
parent | 698366654c7d430ed573ac0a340d843200cd3407 (diff) | |
download | coreboot-c410b183370609b58db5d8d94c527bddb3c79447.tar.gz |
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>
Reviewed-on: https://review.coreboot.org/14514
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/board_status')
-rwxr-xr-x | util/board_status/to-wiki/towiki.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/board_status/to-wiki/towiki.sh b/util/board_status/to-wiki/towiki.sh index d9ec06495a..3fec3860f8 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 |