[Qa-jenkins-scm] [jenkins.debian.net] 04/04: reproducible coreboot: refactor, introduce save_coreboot_results()

Holger Levsen holger at moszumanska.debian.org
Fri Jun 12 16:26:39 UTC 2015


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 0a6cbf507fe27be56d2d645d8e336a9352395c4d
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Jun 12 18:23:58 2015 +0200

    reproducible coreboot: refactor, introduce save_coreboot_results()
---
 bin/reproducible_coreboot.sh | 37 ++++++++++++++++---------------------
 1 file changed, 16 insertions(+), 21 deletions(-)

diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh
index c8cefb8..af480d4 100755
--- a/bin/reproducible_coreboot.sh
+++ b/bin/reproducible_coreboot.sh
@@ -68,6 +68,18 @@ call_debbindiff() {
 	fi
 }
 
+save_coreboot_results(){
+	RUN=$1
+	cd coreboot-builds
+	for i in * ; do
+		if [ -f $i/coreboot.rom ] ; then
+			mkdir -p $TMPDIR/$RUN/$i
+			cp -p $i/coreboot.rom $TMPDIR/$RUN/$i/
+		fi
+	done
+cd ..
+rm coreboot-builds -r
+
 #
 # main
 #
@@ -146,18 +158,8 @@ sed -i 's#USE_XARGS=1#USE_XARGS=0#g' util/abuild/abuild
 nice ionice -c 3 \
 	bash util/abuild/abuild --payloads none || true # don't fail the full job just because some targets fail
 
-cd coreboot-builds
-for i in * ; do
-	# abuild and sharedutils are build results but not the results we are looking for...
-	if [ "$i" != "abuild" ] && [ "$i" != "sharedutils" ] ; then
-		mkdir -p $TMPDIR/b1/$i
-		if [ -f $i/coreboot.rom ] ; then
-			cp -p $i/coreboot.rom $TMPDIR/b1/$i/
-		fi
-	fi
-done
-cd ..
-rm coreboot-builds -rf
+# save results in b1
+save_coreboot_results b1
 
 echo "============================================================================="
 echo "$(date -u) - Building coreboot images now - second build run."
@@ -182,15 +184,8 @@ export TZ="/usr/share/zoneinfo/UTC"
 export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:"
 umask 0022
 
-cd coreboot-builds
-for i in * ; do
-	if [ -f $i/coreboot.rom ] ; then
-		mkdir -p $TMPDIR/b2/$i
-		cp -p $i/coreboot.rom $TMPDIR/b2/$i/
-	fi
-done
-cd ..
-rm coreboot-builds -r
+# save results in b2
+save_coreboot_results b2
 
 # clean up builddir to save space on tmpfs
 rm -r $TMPBUILDDIR/coreboot

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