diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-01-04 01:09:49 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-04 01:14:52 +0100 |
commit | 37b33e51e0393c2b2d519235be72a7db776cdc2c (patch) | |
tree | 51d0c67c56e19eddef96845a31eccf7572a35521 /bin | |
parent | 1fc7872a307ebe76e0bf63983a518eb4cd34a1a0 (diff) | |
download | jenkins.debian.net-37b33e51e0393c2b2d519235be72a7db776cdc2c.tar.xz |
bash is horrible..
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_graphs.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index 8437771f..1b82fb6d 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -46,7 +46,11 @@ if [ -z $RESULT ] ; then DIFFU=$(sqlite3 -init ${INIT} ${PACKAGES_DB} "SELECT julianday('$DATE') - julianday('$OLDESTU');") if [ -z $DIFFU ] ; then DIFFU=0 ; fi let "TOTAL=GOOD+BAD+UGLY+REST" - let "UNTESTED=ALL-TOTAL" + if [ "$ALL" != "$TOTAL" ] ; then + let "UNTESTED=ALL-TOTAL" + else + UNTESTED=0 + fi sqlite3 -init ${INIT} ${PACKAGES_DB} "INSERT INTO ${TABLE[0]} VALUES (\"$DATE\", \"$SUITE\", $UNTESTED, $GOOD, $BAD, $UGLY, $REST)" sqlite3 -init ${INIT} ${PACKAGES_DB} "INSERT INTO ${TABLE[1]} VALUES (\"$DATE\", \"$SUITE\", $GOOAY, $BAAY, $UGLDAY, $RESDAY)" sqlite3 -init ${INIT} ${PACKAGES_DB} "INSERT INTO ${TABLE[2]} VALUES (\"$DATE\", \"$SUITE\", \"$DIFFG\", \"$DIFFB\", \"$DIFFU\")" |