From: Thomas Weißschuh Date: Mon, 17 Apr 2023 16:30:05 +0000 (+0200) Subject: tests: don't skip on incorrectly search executables X-Git-Tag: v2.39-rc3~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ead6a96eee10a6dfadd754ffab789e802bc0d7dd;p=thirdparty%2Futil-linux.git tests: don't skip on incorrectly search executables Signed-off-by: Thomas Weißschuh --- diff --git a/tests/functions.sh b/tests/functions.sh index 2f02af328a..3d2c93d77a 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -77,6 +77,9 @@ function ts_report { function ts_check_test_command { case "$1" in + "") + ts_failed "invalid test_command requested" + ;; */*) # paths if [ ! -x "$1" ]; then @@ -99,6 +102,7 @@ function ts_check_test_command { function ts_check_prog { local cmd=$1 + [ -z "$cmd" ] && ts_failed "invalid prog requested" type "$cmd" >/dev/null 2>&1 || ts_skip "missing in PATH: $cmd" }