[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: sort usertags (in graphs+table) alphabetically

Holger Levsen holger at moszumanska.debian.org
Thu Nov 26 09:18:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch h01ger/WIP-sorted-tags-need-resorted-colors-too
in repository jenkins.debian.net.

commit 1d07258428931a7baabef0e722010737d022faea
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Nov 26 10:18:46 2015 +0100

    reproducible: sort usertags (in graphs+table) alphabetically
---
 bin/reproducible_html_dashboard.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index aecb286..cd80303 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -29,7 +29,8 @@ for i in reproducible unreproducible FTBFS other ; do
 done
 FIELDS[2]="datum, oldest"
 FIELDS[3]="datum "
-for TAG in $USERTAGS ; do
+# for $(sorted list of usertags)…
+for TAG in $(echo "$USERTAGS" | sed -s "s# #\n#g" | sort -u | xargs echo) ; do
 	# for this table (#3) bugs with ftbfs tags are ignored _now_…
 	if [ "$TAG" = "ftbfs" ] ; then
 		continue
@@ -44,6 +45,7 @@ FIELDS[5]="datum, known_issues"
 FIELDS[7]="datum, done_bugs, open_bugs"
 SUM_DONE="(0"
 SUM_OPEN="(0"
+# no need to sort the usertags, only their sum will be used
 for TAG in $USERTAGS ; do
 	SUM_DONE="$SUM_DONE+done_$TAG"
 	SUM_OPEN="$SUM_OPEN+open_$TAG"
@@ -51,7 +53,8 @@ done
 SUM_DONE="$SUM_DONE)"
 SUM_OPEN="$SUM_OPEN)"
 FIELDS[8]="datum "
-for TAG in $USERTAGS ; do
+# for $(sorted list of usertags)…
+for TAG in $(echo "$USERTAGS" | sed -s "s# #\n#g" | sort -u | xargs echo) ; do
 	# for this table (#8) bugs with ftbfs tags are ignored.
 	if [ "$TAG" = "ftbfs" ] ; then
 		continue

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