diff options
| author | Stefan Eßer <se@FreeBSD.org> | 2023-02-24 22:14:58 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 2023-02-24 22:14:58 +0000 |
| commit | 61e1a12bb6c3bfdb0a4e499c88e8eaa2b548e427 (patch) | |
| tree | 86bf7579a17d0deeccf9d4a705c36eed3b1e3273 /tests/scripts.sh | |
| parent | aaf1213c6f70af0b517f6aa13cd837d3468a7a0d (diff) | |
Diffstat (limited to 'tests/scripts.sh')
| -rwxr-xr-x | tests/scripts.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/scripts.sh b/tests/scripts.sh index 5c3b6fc3d02c..dda57e435059 100755 --- a/tests/scripts.sh +++ b/tests/scripts.sh @@ -31,6 +31,8 @@ script="$0" testdir=$(dirname "${script}") +. "$testdir/../scripts/functions.sh" + # Just print the usage and exit with an error. This can receive a message to # print. # @param 1 A message to print. @@ -50,11 +52,12 @@ pll=1 while getopts "n" opt; do case "$opt" in - n) pll=0 ; shift ; set -e ;; + n) pll=0 ; set -e ;; ?) usage "Invalid option: $opt" ;; esac done +shift $(($OPTIND - 1)) # Command-line processing. if [ "$#" -eq 0 ]; then |
