[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible netbsd: simplify save_netbsd_results()

Holger Levsen holger at moszumanska.debian.org
Thu Jul 9 14:34:04 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 f788cd3383c6a313ce059761a7f9672d36d752e9
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Jul 9 16:33:41 2015 +0200

    reproducible netbsd: simplify save_netbsd_results()
---
 bin/reproducible_netbsd.sh | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/bin/reproducible_netbsd.sh b/bin/reproducible_netbsd.sh
index 0ae94db..09532ec 100755
--- a/bin/reproducible_netbsd.sh
+++ b/bin/reproducible_netbsd.sh
@@ -28,13 +28,9 @@ create_results_dirs() {
 
 save_netbsd_results(){
 	local RUN=$1
-	local MACHINE
-	cd obj/releasedir/
-	for MACHINE in $MACHINES ; do
-		mkdir -p $TMPDIR/$RUN/${MACHINE}
-		cp -pr ${MACHINE} $TMPDIR/$RUN/
-	done
-	cd ../..
+	local MACHINE=$2
+	mkdir -p $TMPDIR/$RUN/${MACHINE}
+	cp -pr obj/releasedir/${MACHINE} $TMPDIR/$RUN/
 }
 
 #
@@ -74,7 +70,7 @@ for MACHINE in $MACHINES ; do
 	ionice -c 3 nice \
 		./build.sh -j $NUM_CPU -U -u -m ${MACHINE} release
 	# save results in b1
-	save_netbsd_results b1
+	save_netbsd_results b1 ${MACHINE}
 	echo "${MACHINE} done, first time."
 done
 
@@ -101,7 +97,7 @@ for MACHINE in $MACHINES ; do
 		linux64 --uname-2.6 \
 		./build.sh -j $NEW_NUM_CPU -U -u -m ${MACHINE} release
 	# save results in b2
-	save_netbsd_results b2
+	save_netbsd_results b2 ${MACHINE}
 	echo "${MACHINE} done, second time."
 done
 

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