From 412f53318d04abf448ea558f751715c54716e3f4 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 13 Jun 2017 18:38:04 +0200 Subject: reproducible_lede: do a quick sha256sum before calling diffoscope Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_lede.sh') diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 8e0e8d5f..659f40e5 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 -- cgit v1.2.3-54-g00ecf