diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-06-13 18:38:04 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-18 17:49:01 +0200 |
commit | 412f53318d04abf448ea558f751715c54716e3f4 (patch) | |
tree | 7ff9421640b6d862e5bd21b9af32dd5f4f96bb80 | |
parent | cd92a5a5f2891385896558da3701d6fc5382713a (diff) | |
download | jenkins.debian.net-412f53318d04abf448ea558f751715c54716e3f4.tar.xz |
reproducible_lede: do a quick sha256sum before calling diffoscope
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_lede.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |