[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: display coreboot rom sizes correctly
Holger Levsen
holger at moszumanska.debian.org
Tue Jun 9 09:26:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 4295a88fa4a843f53522b5082ac6f8e95cb3abe1
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Jun 9 11:26:07 2015 +0200
reproducible: display coreboot rom sizes correctly
---
bin/reproducible_coreboot.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh
index 92dc3ff..55bee55 100755
--- a/bin/reproducible_coreboot.sh
+++ b/bin/reproducible_coreboot.sh
@@ -210,13 +210,14 @@ for i in * ; do
let ALL_ROMS+=1
if [ -f $i/coreboot.rom ] ; then
call_debbindiff $i
- SIZE="$(du -h $i/coreboot.rom | cut -f1)"
+ SIZE="$(du -h -b $i/coreboot.rom | cut -f1)"
+ SIZE="$(echo $SIZE/1024|bc)"
if [ -f $TMPDIR/$i.html ] ; then
mv $TMPDIR/$i.html $BASE/coreboot/dbd/$i.html
- write_page " <li><a href=\"dbd/$i.html\"><img src=\"/userContent/static/weather-showers-scattered.png\" alt=\"unreproducible icon\" /> $i</a> ($SIZE) is unreproducible.</li>"
+ write_page " <li><a href=\"dbd/$i.html\"><img src=\"/userContent/static/weather-showers-scattered.png\" alt=\"unreproducible icon\" /> $i</a> (${SIZE}K) is unreproducible.</li>"
else
SHASUM=$(sha256sum $i/coreboot.rom|cut -d " " -f1)
- write_page " <li><img src=\"/userContent/static/weather-clear.png\" alt=\"reproducible icon\" /> $i ($SHASUM, $SIZE) had no debbindiff output so it's probably reproducible :)</li>"
+ write_page " <li><img src=\"/userContent/static/weather-clear.png\" alt=\"reproducible icon\" /> $i ($SHASUM, ${SIZE}K) had no debbindiff output so it's probably reproducible :)</li>"
let GOOD_ROMS+=1
fi
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list