[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible_lede: add debug around sha256

Holger Levsen holger at layer-acht.org
Sun Jun 18 20:07:26 UTC 2017


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 0dc48792502d3269b0a60f72e8949e696f0c339f
Author: Alexander Couzens <lynxis at fe80.eu>
Date:   Sun Jun 18 22:02:05 2017 +0200

    reproducible_lede: add debug around sha256
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_lede.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index 659f40e..845e91c 100755
--- a/bin/reproducible_lede.sh
+++ b/bin/reproducible_lede.sh
@@ -142,6 +142,11 @@ for target in * ; do
 				continue
 			fi
 			# lets do a short sha256sum here, if not equal call diffoscope
+			echo "debug sha256: \"$TMPDIR/b1/targets/$target/$subtarget/$image\" \"$TMPDIR/b2/targets/$target/$subtarget/$image\""
+			sha256sum "$TMPDIR/b1/targets/$target/$subtarget/$image" "$TMPDIR/b2/targets/$target/$subtarget/$image"
+			echo "$(sha256sum "$TMPDIR/b1/targets/$target/$subtarget/$image" "$TMPDIR/b2/targets/$target/$subtarget/$image" \
+				| cut -f 1 -d ' ' | uniq -c  | wc -l)" '!=' "1"
+
 			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

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