add check and score info

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2017-10-23 15:38:08 +02:00
parent ad045075eb
commit 8424b0a6ba

View file

@ -71,6 +71,12 @@ if [ "x$ID" != "x0" ]; then
sleep 3 sleep 3
fi fi
# Total Score
# Warn Scored -1, Pass Scored +1, Not Score -0
totalChecks=0
currentScore=0
logit "Initializing $(date)\n" logit "Initializing $(date)\n"
beginjson "1.3.4" "$(date +%s)" beginjson "1.3.4" "$(date +%s)"
@ -94,6 +100,12 @@ main () {
. ./"$test" . ./"$test"
done done
printf "\n"
info "Checks: $totalChecks"
info "Score: $currentScore"
integerjson "checks" "$totalChecks"
integerjson "score" "$currentScore"
endjson "$(date +%s)" endjson "$(date +%s)"
} }