diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-05 23:31:27 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-04-18 17:20:08 +0200 |
commit | 41554d678d6e69fea8f3fcb507f3bb007e91689d (patch) | |
tree | e97622f614520b8e0ca80d22473cbd7ba296bac9 /bin/reproducible_build.sh | |
parent | 75f5eafb9001be10aab81cae7bf5d59b635bc9d2 (diff) | |
download | jenkins.debian.net-41554d678d6e69fea8f3fcb507f3bb007e91689d.tar.xz |
reproducible: build: refactor: slim down the call_debbindiff() function: strip out print_out_duration()
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index bb7279c7..73dfd436 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) |