diff options
author | Ruediger Meier | 2014-05-14 23:53:52 +0200 |
---|---|---|
committer | Ruediger Meier | 2014-05-15 12:00:59 +0200 |
commit | d1962aaec688626220b5a4b8272c2cbe019478cb (patch) | |
tree | 52fc6f2d9966b47cef9c6fa73ab6d4dc71abc404 /tests/functions.sh | |
parent | Merge branch 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux (diff) | |
download | kernel-qcow2-util-linux-d1962aaec688626220b5a4b8272c2cbe019478cb.tar.gz kernel-qcow2-util-linux-d1962aaec688626220b5a4b8272c2cbe019478cb.tar.xz kernel-qcow2-util-linux-d1962aaec688626220b5a4b8272c2cbe019478cb.zip |
tests: add function ts_check_prog
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/functions.sh')
-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" |