Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cef655acc6 | |||
| 9a0ea96d22 |
@@ -1,14 +1,16 @@
|
||||
# Task 06G4JX6MSQEP7N0D5JWW9EP5X4
|
||||
# Task 06G4M6HF1Z3EREX1X3NEKSHP24
|
||||
|
||||
Late handoff rig: add a --version line to the healthcheck usage text
|
||||
Name the healthcheck success message once
|
||||
|
||||
- Project: test-e2e
|
||||
- Source: burnin/late-handoff-1
|
||||
- Source: burnin/run14-a
|
||||
- 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.
|
||||
scripts/orchestra_e2e_healthcheck.sh spells its success message inline. Give it a single named constant beside the existing VERSION constant and use that constant everywhere the message is printed.
|
||||
|
||||
Behaviour must not change. The plain run, --quiet and --help keep their current output and exit statuses, and scripts/test_healthcheck.sh keeps passing.
|
||||
|
||||
## Research first
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
readonly VERSION=1.0.0
|
||||
readonly SUCCESS_MESSAGE='OK - all healthchecks passed'
|
||||
|
||||
# emit <format> <template> [args...]: the single output path.
|
||||
# format: text or json print; none suppresses (--quiet). Explicit argument,
|
||||
@@ -38,7 +39,7 @@ main() {
|
||||
exit 0
|
||||
fi
|
||||
|
||||
emit "$format" 'OK - all healthchecks passed\n'
|
||||
emit "$format" '%s\n' "$SUCCESS_MESSAGE"
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user