aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-11 09:09:45 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-11 09:09:45 -0400
commitaa3e08d98424e36d46a7a2dae444c2bfd13587e7 (patch)
tree74bae484f6f480ac9213e5dd6fd7b23796d3b1d1 /scripts/test.sh
parentAdd --keepdb flag to tests script (diff)
downloadcli-aa3e08d98424e36d46a7a2dae444c2bfd13587e7.zip
Adjust variable placement in test.sh
Diffstat (limited to 'scripts/test.sh')
-rwxr-xr-xscripts/test.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index c31038f..fe14068 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -4,6 +4,9 @@ set -eou pipefail
source "$(dirname "${BASH_SOURCE[0]}")/lib/log.sh"
source "$(dirname "${BASH_SOURCE[0]}")/lib/test.sh"
+KEEPDB=false
+SUITE=""
+
usage() {
echo "Usage: $0 [OPTIONS] [TEST_SUITE]"
echo ""
@@ -55,12 +58,9 @@ main() {
}
parse_args() {
- KEEPDB=false
- SUITE=""
-
while [[ $# -gt 0 ]]; do
case "$1" in
- -h|--help)
+ -h | --help)
usage
exit 0
;;