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

maxin.john at enea.com maxin.john at enea.com
Mon Mar 18 10:35: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..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"
 }
 
-- 
1.7.5.4





More information about the Strace-devel mailing list