[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible_lede: do a quick sha256sum before calling diffoscope

Holger Levsen holger at layer-acht.org
Sat Jun 17 14:27:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch buster
in repository jenkins.debian.net.

commit 181267d122c83cc45bd1bf3d73292998c84d5964
Author: Alexander Couzens <lynxis at fe80.eu>
Date:   Tue Jun 13 18:38:04 2017 +0200

    reproducible_lede: do a quick sha256sum before calling diffoscope
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_lede.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index 8e0e8d5..659f40e 100755
--- a/bin/reproducible_lede.sh
+++ b/bin/reproducible_lede.sh
@@ -141,7 +141,11 @@ for target in * ; do
 				rm -f $BASE/lede/dbd/targets/$target/$subtarget/$image.html # cleanup from previous (unreproducible) tests - if needed
 				continue
 			fi
-			call_diffoscope targets/$target/$subtarget $image
+			# lets do a short sha256sum here, if not equal call diffoscope
+			if [ "$(sha256sum "$TMPDIR/b1/targets/$target/$subtarget/$image" "$TMPDIR/b2/targets/$target/$subtarget/$image" \
+				| cut -f 1 -d ' ' | uniq -c  | wc -l)" != "1" ] ; then
+				call_diffoscope targets/$target/$subtarget $image
+			fi
 			get_filesize $image
 			if [ -f $TMPDIR/targets/$target/$subtarget/$image.html ] ; then
 				mkdir -p $BASE/lede/dbd/targets/$target/$subtarget

-- 
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