17 lines
489 B
Bash
Executable File
17 lines
489 B
Bash
Executable File
#!/bin/bash -e
|
|
# NOTES:
|
|
# * this is a simple shell based `mgmt` test case
|
|
# * it is recommended that you run mgmt wrapped in the timeout command
|
|
# * it is recommended that you run mgmt with --no-watch
|
|
# * it is recommended that you run mgmt --converged-timeout=<seconds>
|
|
# * you can run mgmt with --max-runtime=<seconds> in special scenarios
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
timeout --kill-after=3s 1s ./mgmt --help # hello world!
|
|
pid=$!
|
|
wait $pid # get exit status
|
|
exit $?
|