summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-18 14:19:29 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-18 14:19:29 +0100
commit1ac3a03f9a48b2e7a5f81c445cae598fa4b4fddd (patch)
tree7e12b80f06eb5ededc2ec297a616003c2b9a2f72 /bin
parentd00a62b7ac6a4f69e4a726cbe5e3e837422b859d (diff)
downloadjenkins.debian.net-1ac3a03f9a48b2e7a5f81c445cae598fa4b4fddd.tar.xz
reproducible archlinux: refactoring
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_archlinux.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index 45403f5c..b0fe61ec 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -15,16 +15,19 @@ ARCHBASE=$BASE/archlinux
# analyse results to create the webpage
#
echo "$(date -u) - starting to analyse build results."
-for i in 0 1 2 3 4 ; do
+MEMBERS_FTBFS="0 1 2 3 4"
+MEMBERS_DEPWAIT="0 1"
+MEMBERS_404="0 1 2 3 4 5 6 7"
+for i in $MEMBERS_FTBFS ; do
HTML_FTBFS[$i]=$(mktemp)
done
-HTML_FTBR=$(mktemp -t rhtml-archlinux-XXXXXXXX)
-for i in 0 1 ; do
+for i in $MEMBERS_DEPWAIT ; do
HTML_DEPWAIT[$i]=$(mktemp -t rhtml-archlinux-XXXXXXXX)
done
-for i in 0 1 2 3 4 5 6 7; do
+for i in $MEMBERS_404 ; do
HTML_404[$i]=$(mktemp -t rhtml-archlinux-XXXXXXXX)
done
+HTML_FTBR=$(mktemp -t rhtml-archlinux-XXXXXXXX)
HTML_GOOD=$(mktemp -t rhtml-archlinux-XXXXXXXX)
HTML_UNKNOWN=$(mktemp -t rhtml-archlinux-XXXXXXXX)
HTML_BUFFER=$(mktemp -t rhtml-archlinux-XXXXXXXX)
@@ -183,7 +186,7 @@ cat $HTML_REPOSTATS >> $PAGE
rm $HTML_REPOSTATS > /dev/null
write_page " </table>"
write_page " <table><tr><th>repository</th><th>source package</th><th>test result</th><th>test date</th><th>1st build log</th><th>2nd build log</th></tr>"
-for i in $HTML_UNKNOWN $(for j in 0 1 2 3 4 5 6 7 ; do echo ${HTML_404[$j]} ; done) $(for j in 0 1 2 3 4 5 6 7 ; do echo ${HTML_DEPWAIT[$j]} ; done) $(for j in 0 1 2 3 4 ; do echo ${HTML_FTBFS[$j]} ; done) $HTML_FTBR $HTML_GOOD ; do
+for i in $HTML_UNKNOWN $(for j in $MEMBERS_404 ; do echo ${HTML_404[$j]} ; done) $(for j in $MEMBERS_DEPWAIT ; do echo ${HTML_DEPWAIT[$j]} ; done) $(for j in $MEMBERS_FTBFS ; do echo ${HTML_FTBFS[$j]} ; done) $HTML_FTBR $HTML_GOOD ; do
cat $i >> $PAGE
rm $i > /dev/null
done