[PATCH] tests: init.sh: update the check_prog for busybox

maxin.john at enea.com maxin.john at enea.com
Mon Mar 18 09:47:06 UTC 2013


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 ||
 		framework_skip_ "$* is not available"
 }
 
-- 
1.7.5.4





More information about the Strace-devel mailing list