[PATCH] tests: init.sh: update the check_prog for busybox
Dmitry V. Levin
ldv at altlinux.org
Mon Mar 18 10:08:33 UTC 2013
On Mon, Mar 18, 2013 at 10:47:06AM +0100, maxin.john at enea.com wrote:
> From: "Maxin B. John" <maxin.john at enea.com>
>
> Busybox version of timeout doesn't have "--version" option. Updating
> the check_prog() to handle those cases.
>
> Signed-off-by: Maxin B. John <maxin.john at enea.com>
> ---
> tests/init.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tests/init.sh b/tests/init.sh
> index f860b0b..ba5c8ca 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 ||
> + which "$@" > /dev/null 2>&1 ||
Unfortunately, "which" is not always available, try "type" instead.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20130318/637baa59/attachment.bin>
More information about the Strace-devel
mailing list