diff --git a/scripts/orchestra_e2e_healthcheck.sh b/scripts/orchestra_e2e_healthcheck.sh index f6fa7ee..9078374 100755 --- a/scripts/orchestra_e2e_healthcheck.sh +++ b/scripts/orchestra_e2e_healthcheck.sh @@ -13,6 +13,7 @@ shebang_is_bash usage_text_mentions_every_flag" # name=ok / name=fail pairs, in run order. RESULTS= FAILED=0 +# TOTAL is the number of checks that ran, reported by --count. TOTAL=0 # record : append one outcome to the results state. @@ -102,6 +103,7 @@ main() { local summary= local timing= local strict= + local count= local unknown= for arg in "$@"; do if [ "$arg" = --help ]; then @@ -123,6 +125,8 @@ main() { timing=1 elif [ "$arg" = --strict ]; then strict=1 + elif [ "$arg" = --count ]; then + count=1 else [ -n "$unknown" ] || unknown=$arg fi