test: provider usage text for shell test runner
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# simple test harness for testing mgmt
|
# simple test harness for testing mgmt
|
||||||
# NOTE: this will rm -rf /tmp/mgmt/
|
# NOTE: this will rm -rf /tmp/mgmt/
|
||||||
|
if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
|
||||||
|
echo -e "usage: ./"`basename $0`" [[--help] | <test>]"
|
||||||
|
echo -e "where: <test> is empty to run all tests, or <file>.sh from shell/ dir"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo running test-shell.sh
|
echo running test-shell.sh
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|||||||
Reference in New Issue
Block a user