From a150aba675db129cd58d0a04a575036887a6d1a4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 12 Dec 2015 03:17:56 +0100 Subject: reproducible coreboot: correctly detect roms which fail to build (twice) --- bin/reproducible_coreboot.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_coreboot.sh') diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh index a7539618..562b4132 100755 --- a/bin/reproducible_coreboot.sh +++ b/bin/reproducible_coreboot.sh @@ -169,7 +169,7 @@ create_results_dirs cd $TMPDIR/b1 for i in $(ls -1d *| sort -u) ; do let ALL_ROMS+=1 - if [ -f $i/coreboot.rom ] ; then + if [ -f $i/coreboot.rom ] && [ -f $TMPDIR/b2/$i/coreboot.rom ] ; then call_diffoscope $i coreboot.rom get_filesize $i/coreboot.rom if [ -f $TMPDIR/$i/coreboot.rom.html ] ; then @@ -182,7 +182,11 @@ for i in $(ls -1d *| sort -u) ; do rm -f $BASE/coreboot/dbd/$i.html # cleanup from previous (unreproducible) tests - if needed fi else - echo "
  • \"FTBFS $i failed to build from source.
  • " >> $ROMS_HTML + if [ ! -f $i/coreboot.rom ] ; then + echo "
  • \"FTBFS $i failed to build from source.
  • " >> $ROMS_HTML + else + echo "
  • \"FTBFS $i failed to build from source on the 2nd build.
  • " >> $ROMS_HTML + fi let BAD_ROMS+=1 fi done -- cgit v1.2.3-54-g00ecf