From 0ee0169ef19a9e0f26db63837acc2d5a6e1e7c7e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 3 Apr 2015 16:07:51 +0200 Subject: reproducible: include duration in rbuild logs --- bin/reproducible_build.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index e76eb2c7..50f6469c 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -154,6 +154,10 @@ 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} } TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d) -- cgit v1.2.3-70-g09d2