summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_dashboard.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-02-03 15:01:51 +0100
committerHolger Levsen <holger@layer-acht.org>2016-02-03 15:01:51 +0100
commitefc01d180beabea3aede34411d879d0a450fff43 (patch)
treec80982b3e9b5336a9c9e9350b904db47ed930dc7 /bin/reproducible_html_dashboard.sh
parentb9747ce0b6bcbcbc7af39e5f8855c63da61fdfbc (diff)
downloadjenkins.debian.net-efc01d180beabea3aede34411d879d0a450fff43.tar.xz
reproducible debian dashboard: correctly count usertagged bugs excluding ftbfs
Diffstat (limited to 'bin/reproducible_html_dashboard.sh')
-rwxr-xr-xbin/reproducible_html_dashboard.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh
index e1505d0f..c6dd2851 100755
--- a/bin/reproducible_html_dashboard.sh
+++ b/bin/reproducible_html_dashboard.sh
@@ -270,10 +270,11 @@ write_usertag_table() {
let "TTOTAL=TTOTAL+TOTAL"
fi
done
- # now subtract the ftbfs bugs again (=the last value)
+ # now subtract the ftbfs bugs again (=the last fields from the result)
# as those others are the ones we really care about
- let "REPRODUCIBLE_TOPEN=TOPEN-VALUE"
- let "REPRODUCIBLE_TDONE=TDONE-VALUE"
+ let "CCOUNT=COUNT-1"
+ let "REPRODUCIBLE_TOPEN=TOPEN-$(echo $RESULT | cut -d "|" -f$CCOUNT)"
+ let "REPRODUCIBLE_TDONE=TDONE-$(echo $RESULT | cut -d "|" -f$COUNT)"
let "REPRODUCIBLE_TTOTAL=REPRODUCIBLE_TOPEN+REPRODUCIBLE_TDONE"
write_page "<tr><td>Sum of <a href=\"https://wiki.debian.org/ReproducibleBuilds/Contribute#How_to_report_bugs\">bugs with usertags related to reproducible builds</a>, excluding those tagged 'ftbfs'</td><td>$REPRODUCIBLE_TOPEN</td><td>$REPRODUCIBLE_TDONE</td><td>$REPRODUCIBLE_TTOTAL</td></tr>"
write_page "<tr><td>Sum of all bugs with usertags related to reproducible builds</td><td>$TOPEN</td><td>$TDONE</td><td>$TTOTAL</td></tr>"