From 065c7381d97e87cd2d2a799093023e120b1cad0c Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 28 Jul 2016 10:08:34 -0400 Subject: reproducible/lede: correct paths within image comparison The path wasn't migrated while introducing the new path structure. Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'bin/reproducible_lede.sh') diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 8705277b..0d2434c7 100755 --- a/bin/reproducible_lede.sh +++ b/bin/reproducible_lede.sh @@ -102,6 +102,9 @@ ALL_IMAGES=0 SIZE="" cd $TMPDIR/b1/targets tree . + +# iterate over all images (merge b1 and b2 images into one list) +# call diffoscope on the images for target in * ; do cd $target for subtarget in * ; do @@ -116,22 +119,22 @@ for target in * ; do echo " " >> $DBD_HTML for image in $(printf "$IMGS1\n$IMGS2" | sort -u ) ; do let ALL_IMAGES+=1 - if [ ! -f $TMPDIR/b1/$target/$subtarget/$image -o ! -f $TMPDIR/b2/$target/$subtarget/$image ] ; then + if [ ! -f $TMPDIR/b1/targets/$target/$subtarget/$image -o ! -f $TMPDIR/b2/targets/$target/$subtarget/$image ] ; then echo " " >> $DBD_HTML - rm -f $BASE/lede/dbd/$target/$subtarget/$image.html # cleanup from previous (unreproducible) tests - if needed + rm -f $BASE/lede/dbd/targets/$target/$subtarget/$image.html # cleanup from previous (unreproducible) tests - if needed continue fi call_diffoscope $target/$subtarget $image get_filesize $image if [ -f $TMPDIR/$target/$subtarget/$image.html ] ; then - mkdir -p $BASE/lede/dbd/$target/$subtarget - mv $TMPDIR/$target/$subtarget/$image.html $BASE/lede/dbd/$target/$subtarget/$image.html - echo " " >> $DBD_HTML + mkdir -p $BASE/lede/dbd/targets/$target/$subtarget + mv $TMPDIR/targets/$target/$subtarget/$image.html $BASE/lede/dbd/targets/$target/$subtarget/$image.html + echo " " >> $DBD_HTML else SHASUM=$(sha256sum $image|cut -d " " -f1) echo " " >> $DBD_HTML let GOOD_IMAGES+=1 - rm -f $BASE/lede/dbd/$target/$subtarget/$image.html # cleanup from previous (unreproducible) tests - if needed + rm -f $BASE/lede/dbd/targets/$target/$subtarget/$image.html # cleanup from previous (unreproducible) tests - if needed fi done cd .. -- cgit v1.2.3-54-g00ecf
Images for $target/$subtarget
\"ftbfs $image (${SIZE}) failed to build.
\"unreproducible $image (${SIZE}) is unreproducible.
\"unreproducible $image (${SIZE}) is unreproducible.
\"reproducible $image ($SHASUM, $SIZE) is reproducible.