Add a --quiet flag to the healthcheck script #8

Merged
kami merged 3 commits from orchestra/06G4E6F69AKP2PA00S28D7ASBC into master 2026-08-28 09:02:07 +02:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 0d1585df93 - Show all commits
+2 -1
View File
@@ -4,9 +4,10 @@ main() {
local quiet=
for arg in "$@"; do
if [ "$arg" = --help ]; then
printf 'Usage: %s\n\n' "${0##*/}"
printf 'Usage: %s [--quiet]\n\n' "${0##*/}"
printf 'Healthcheck script for Orchestra E2E tests.\n'
printf 'Exits 0 with a success message if all checks pass.\n'
printf ' --quiet Suppress the success message; still exits 0.\n'
exit 0
elif [ "$arg" = --quiet ]; then
quiet=1
+1 -1
View File
@@ -3,7 +3,7 @@
HC="$(dirname "$0")/orchestra_e2e_healthcheck.sh"
OK='OK - all healthchecks passed'
USAGE="$(printf 'Usage: orchestra_e2e_healthcheck.sh\n\nHealthcheck script for Orchestra E2E tests.\nExits 0 with a success message if all checks pass.')"
USAGE="$(printf 'Usage: orchestra_e2e_healthcheck.sh [--quiet]\n\nHealthcheck script for Orchestra E2E tests.\nExits 0 with a success message if all checks pass.\n --quiet Suppress the success message; still exits 0.')"
fails=0
check() { # check <expected-stdout> <label> [args...]