[Qa-jenkins-scm] [jenkins.debian.net] 03/03: reproducible: build: refactor: slim down the call_debbindiff() function: strip out print_out_duration()
Holger Levsen
holger at moszumanska.debian.org
Sat Apr 18 15:21:38 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 41554d678d6e69fea8f3fcb507f3bb007e91689d
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Sun Apr 5 23:31:27 2015 +0200
reproducible: build: refactor: slim down the call_debbindiff() function: strip out print_out_duration()
---
bin/reproducible_build.sh | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index bb7279c..73dfd43 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -74,6 +74,13 @@ update_db_and_html() {
echo
}
+print_out_duration() {
+ HOUR=$(echo "$DURATION/3600"|bc)
+ MIN=$(echo "($DURATION-$HOUR*3600)/60"|bc)
+ SEC=$(echo "$DURATION-$HOUR*3600-$MIN*60"|bc)
+ echo "$(date) - total duration: ${HOUR}h ${MIN}m ${SEC}s." | tee -a ${RBUILDLOG}
+}
+
call_debbindiff() {
DBDREPORT=$(ls ${SRCPACKAGE}_${EVERSION}.dsc)
DBDREPORT=$(echo ${DBDREPORT%.dsc}.debbindiff.html)
@@ -150,10 +157,7 @@ call_debbindiff() {
# kgb-client --conf /srv/jenkins/kgb/debian-reproducible.conf --relay-msg "$MESSAGE" || true # don't fail the whole job
fi
fi
- HOUR=$(echo "$DURATION/3600"|bc)
- MIN=$(echo "($DURATION-$HOUR*3600)/60"|bc)
- SEC=$(echo "$DURATION-$HOUR*3600-$MIN*60"|bc)
- echo "$(date) - total duration: ${HOUR}h ${MIN}m ${SEC}s." | tee -a ${RBUILDLOG}
+ print_out_duration
}
TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d)
--
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