From ead6a96eee10a6dfadd754ffab789e802bc0d7dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 17 Apr 2023 18:30:05 +0200 Subject: [PATCH] tests: don't skip on incorrectly search executables MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- tests/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) 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" } -- 2.47.2