Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f22620a78 | |||
| 52d8cba1e2 |
@@ -1,14 +1,14 @@
|
||||
# Task 06G4JX6MSQEP7N0D5JWW9EP5X4
|
||||
# Task 06G4KVSHAK9B8M9K8HENAF23CG
|
||||
|
||||
Late handoff rig: add a --version line to the healthcheck usage text
|
||||
F60 rig: note the quiet flag default in the healthcheck usage text
|
||||
|
||||
- Project: test-e2e
|
||||
- Source: burnin/late-handoff-1
|
||||
- Source: burnin/f60-park-1
|
||||
- Priority: 0
|
||||
|
||||
## Instructions
|
||||
|
||||
Add the version string to the usage text printed by scripts/orchestra_e2e_healthcheck.sh --help. Keep every existing line and exit status unchanged, and keep scripts/test_healthcheck.sh passing.
|
||||
Add one line to the usage text printed by scripts/orchestra_e2e_healthcheck.sh --help stating that --quiet is off by default. Keep every existing line and exit status unchanged, and keep scripts/test_healthcheck.sh passing.
|
||||
|
||||
## Research first
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ main() {
|
||||
emit text 'Healthcheck script for Orchestra E2E tests.\n'
|
||||
emit text 'Exits 0 with a success message if all checks pass.\n'
|
||||
emit text ' --quiet Suppress the success message; still exits 0.\n'
|
||||
emit text ' Off by default; the success message prints unless --quiet is given.\n'
|
||||
emit text 'Version: %s\n' "$VERSION"
|
||||
exit 0
|
||||
elif [ "$arg" = --quiet ]; then
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
HC="$(dirname "$0")/orchestra_e2e_healthcheck.sh"
|
||||
OK='OK - all healthchecks passed'
|
||||
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.\nVersion: 1.0.0')"
|
||||
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.\n Off by default; the success message prints unless --quiet is given.\nVersion: 1.0.0')"
|
||||
fails=0
|
||||
|
||||
check() { # check <expected-stdout> <label> [args...]
|
||||
|
||||
Reference in New Issue
Block a user