diff options
-rw-r--r-- | tests/functions.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh index 3888f0dcd..66dcb0d70 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -45,6 +45,11 @@ function ts_check_test_command { fi } +function ts_check_prog { + local cmd=$1 + type "$cmd" >/dev/null 2>&1 || ts_skip "missing in PATH: $cmd" +} + function ts_check_losetup { local tmp ts_check_test_command "$TS_CMD_LOSETUP" |