From d04d61eb137cb866bf848b878a53cd4513ce566f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 17 Oct 2014 12:59:10 +0200 Subject: g-i-installation: detect 'Reached target Shutdown' in output and act accordingly --- bin/g-i-installation.sh | 1 + bin/reproducible_build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index df50aa8f..ebcc876b 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -908,6 +908,7 @@ monitor_system() { rm $GOCR $GOCR.ppm if [[ "$LAST_LINE" =~ .*Power\ down.* ]] || [[ "$LAST_LINE" =~ .*System\ halted.* ]] || + [[ "$LAST_LINE" =~ .*Reached target Shutdown.* ]] || [[ "$LAST_LINE" =~ .*Cannot\ .inalize\ remaining\ .ile\ systems.* ]]; then echo "QEMU was powered down." break diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 324036ca..d7fe7952 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -129,6 +129,7 @@ else ( timeout 15m /var/lib/jenkins/debbindiff.git/debbindiff.py --html ./${LOGFILE} b1/${SRCPACKAGE}_${EVERSION}_amd64.changes b2/${SRCPACKAGE}_${EVERSION}_amd64.changes ) 2>&1 >> ${RBUILDLOG} RESULT=$? set -e + echo | tee -a ${RBUILDLOG} if [ $RESULT -eq 124 ] ; then echo "$(date) - debbindiff.py was killed after running into timeouot..." | tee -a ${RBUILDLOG} elif [ $RESULT -eq 1 ] ; then @@ -137,7 +138,6 @@ else if [ ! -f ./${LOGFILE} ] && [ -f b1/${BUILDINFO} ] ; then cp b1/${BUILDINFO} /var/lib/jenkins/userContent/buildinfo/ figlet ${SRCPACKAGE} - echo | tee -a ${RBUILDLOG} echo "debbindiff.py found no differences in the changes files, and a .buildinfo file also exist." | tee -a ${RBUILDLOG} echo "${SRCPACKAGE} built successfully and reproducibly." | tee -a ${RBUILDLOG} sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"reproducible\", \"$DATE\")" -- cgit v1.2.3-70-g09d2