[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Arch Linux: improve test duration formatting

Holger Levsen holger at layer-acht.org
Tue Nov 28 22:55:18 UTC 2017


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 df6293ff82c8743d6d3fc14554268070bba256f8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Nov 28 22:55:12 2017 +0000

    reproducible Arch Linux: improve test duration formatting
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_archlinux.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 211c9a5..ada6d31 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -155,7 +155,7 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
 				HOUR=$(echo "$DURATION/3600"|bc)
 				MIN=$(echo "($DURATION-$HOUR*3600)/60"|bc)
 				SEC=$(echo "$DURATION-$HOUR*3600-$MIN*60"|bc)
-				BUILD_DURATION="$HOUR:$MIN:$SEC"
+				BUILD_DURATION="${HOUR}h:${MIN}m:${SEC}s"
 			else
 				BUILD_DURATION=" "
 			fi

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