[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible fedora rpms/archlinux: compare percentage to what's been tested

Holger Levsen holger at moszumanska.debian.org
Sun Dec 13 00:22:17 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 53fc2827bd2163cf0bc5a3876e9fb9f51478d652
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Dec 13 01:21:58 2015 +0100

    reproducible fedora rpms/archlinux: compare percentage to what's been tested
---
 bin/reproducible_html_archlinux.sh | 2 +-
 bin/reproducible_html_rpms.sh      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 1ad7bd6..3407553 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -118,7 +118,7 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
 	echo "     <tr>" >> $HTML_REPOSTATS
 	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/$TOTAL)" | bc)
+		PERCENT_i=$(echo "scale=1 ; ($i*100/$TESTED)" | bc)
 		if [ "$PERCENT_i" != "0" ] ; then
 			echo "      <td>$i ($PERCENT_i%)</td>" >> $HTML_REPOSTATS
 		else
diff --git a/bin/reproducible_html_rpms.sh b/bin/reproducible_html_rpms.sh
index 60596db..8cef49d 100755
--- a/bin/reproducible_html_rpms.sh
+++ b/bin/reproducible_html_rpms.sh
@@ -95,7 +95,7 @@ fi
 echo "     <tr>" >> $HTML_RPM_STATS
 echo "      <td>$RELEASE ($ARCH)</td><td>$NR_TESTED</td>" >> $HTML_RPM_STATS
 for i in $NR_GOOD $NR_FTBR $NR_FTBFS $NR_DEPWAIT $NR_404 $NR_UNKNOWN ; do
-	PERCENT_i=$(echo "scale=1 ; ($i*100/$TOTAL)" | bc)
+	PERCENT_i=$(echo "scale=1 ; ($i*100/$TESTED)" | bc)
 	if [ "$PERCENT_i" != "0" ] ; then
 		echo "      <td>$i ($PERCENT_i%)</td>" >> $HTML_RPM_STATS
 	else

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