From: Ido Schimmel Date: Sun, 11 Mar 2018 07:57:23 +0000 (+0200) Subject: selftests: forwarding: Exit with error when missing dependencies X-Git-Tag: v4.17-rc1~148^2~225^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff0162af9e7b2e33d4d40f41130c65ba416ba059;p=thirdparty%2Fkernel%2Flinux.git selftests: forwarding: Exit with error when missing dependencies We already return an error when some dependencies (e.g., 'jq') are missing so lets be consistent and do that for all. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko Reviewed-by: David Ahern Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh index 273511ef2b437..6ac8a98fa2709 100644 --- a/tools/testing/selftests/net/forwarding/lib.sh +++ b/tools/testing/selftests/net/forwarding/lib.sh @@ -50,7 +50,7 @@ fi if [[ ! -x "$(command -v $MZ)" ]]; then echo "SKIP: $MZ not installed" - exit 0 + exit 1 fi if [[ ! -v NUM_NETIFS ]]; then