]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth tests: abort if runtests is used incorrectly 13546/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Wed, 29 Nov 2023 23:33:20 +0000 (00:33 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Wed, 29 Nov 2023 23:41:53 +0000 (00:41 +0100)
regression-tests/runtests

index 162d15f0d4bfab35353d08a7b3eba6de5b6d9408..60c8844c0c3578dd8bb165cb5c743d255b3314f1 100755 (executable)
@@ -1,4 +1,9 @@
 #!/usr/bin/env bash
+if [ -z "$testsdir" ]; then
+  echo "Incorrect usage. You probably want ./start-test-stop help"
+  exit 1
+fi
+
 PATH=.:$PATH:/usr/sbin
 MAKE=${MAKE:-make}