[Qa-jenkins-scm] [jenkins.debian.net] 01/01: Reproducible Arch Linux: do show 0% if actual number is not 0
Holger Levsen
holger at layer-acht.org
Mon Nov 27 16:13:52 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 e753a6ece81c8c56d0b1a04e37512879dee42415
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Nov 27 16:13:48 2017 +0000
Reproducible Arch Linux: do show 0% if actual number is not 0
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_html_archlinux.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 39917ff..068455f 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -242,7 +242,7 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
echo " <td>$REPOSITORY</td><td>$NR_TESTED</td>" >> $HTML_REPOSTATS
for i in $NR_GOOD $NR_FTBR $NR_FTBFS $NR_DEPWAIT $NR_404 $NR_UNKNOWN ; do
PERCENT_i=$(echo "scale=1 ; ($i*100/$TESTED)" | bc)
- if [ "$PERCENT_i" != "0" ] ; then
+ if [ "$PERCENT_i" != "0" ] || [ "$i" != "0" ] ; then
echo " <td>$i ($PERCENT_i%)</td>" >> $HTML_REPOSTATS
else
echo " <td>$i</td>" >> $HTML_REPOSTATS
@@ -272,7 +272,7 @@ echo " <tr>" >> $HTML_REPOSTATS
echo " <td><b>all combined</b></td><td>$NR_TESTED</td>" >> $HTML_REPOSTATS
for i in $ARCHLINUX_NR_GOOD $ARCHLINUX_NR_FTBR $ARCHLINUX_NR_FTBFS $ARCHLINUX_NR_DEPWAIT $ARCHLINUX_NR_404 $ARCHLINUX_NR_UNKNOWN ; do
PERCENT_i=$(echo "scale=1 ; ($i*100/$ARCHLINUX_TESTED)" | bc)
- if [ "$PERCENT_i" != "0" ] ; then
+ if [ "$PERCENT_i" != "0" ] || [ "$i" != "0" ] ; then
echo " <td>$i ($PERCENT_i%)</td>" >> $HTML_REPOSTATS
else
echo " <td>$i</td>" >> $HTML_REPOSTATS
--
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