diff options
author | Maxin B. John <maxin.john@enea.com> | 2013-03-18 11:35:06 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-03-18 22:17:41 +0000 |
commit | 066a733bc079cdf17b07aa13f8ad0ac521aba30f (patch) | |
tree | 2d0bc19e87fd3b454e1c60ea0c906f88eccff1f5 /tests | |
parent | b787b10e167bd14c77d005f26af31e1d23e81c2b (diff) | |
download | strace-066a733bc079cdf17b07aa13f8ad0ac521aba30f.tar.gz strace-066a733bc079cdf17b07aa13f8ad0ac521aba30f.tar.bz2 strace-066a733bc079cdf17b07aa13f8ad0ac521aba30f.tar.xz |
tests: relax check_prog to allow timeout command provided by busybox
Busybox version of timeout doesn't have --version option.
Relax check_prog to handle those cases.
* tests/init.sh (check_prog): Use type builtin to check program
availability.
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/init.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/init.sh b/tests/init.sh index f860b0b..a4b537c 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -12,7 +12,7 @@ framework_skip_() { warn_ "$ME_: framework skip: $*"; exit 77; } check_prog() { - "$@" --version > /dev/null 2>&1 || + type "$@" > /dev/null 2>&1 || framework_skip_ "$* is not available" } |