diff --git a/tests/38-basic-pfc_coverage.sh b/tests/38-basic-pfc_coverage.sh index d22947ac..aec34b77 100755 --- a/tests/38-basic-pfc_coverage.sh +++ b/tests/38-basic-pfc_coverage.sh @@ -18,7 +18,7 @@ # function check_deps() { [[ -z "$1" ]] && return - which "$1" >& /dev/null + type -P "$1" >& /dev/null return $? } diff --git a/tests/55-basic-pfc_binary_tree.sh b/tests/55-basic-pfc_binary_tree.sh index a12c69ce..655f7bd1 100755 --- a/tests/55-basic-pfc_binary_tree.sh +++ b/tests/55-basic-pfc_binary_tree.sh @@ -18,7 +18,7 @@ # function check_deps() { [[ -z "$1" ]] && return - which "$1" >& /dev/null + type -P "$1" >& /dev/null return $? } diff --git a/tests/regression b/tests/regression index a1be57d4..ff2be56d 100755 --- a/tests/regression +++ b/tests/regression @@ -73,7 +73,7 @@ GLBL_SYS_API="../tools/scmp_api_level" # function check_deps() { [[ -z "$1" ]] && return - which "$1" >& /dev/null + type -P "$1" >& /dev/null return $? } diff --git a/tests/testgen b/tests/testgen index 5a940e86..d0408c72 100755 --- a/tests/testgen +++ b/tests/testgen @@ -32,7 +32,7 @@ # function verify_deps() { [[ -z "$1" ]] && return - if ! which "$1" >& /dev/null; then + if ! type -P "$1" >& /dev/null; then echo "error: install \"$1\" and include it in your \$PATH" exit 1 fi