aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2018-03-11 09:57:23 +0200
committerDavid S. Miller <davem@davemloft.net>2018-03-11 22:44:24 -0400
commitff0162af9e7b2e33d4d40f41130c65ba416ba059 (patch)
tree4ea64fc7b3b584a7d526d45a65c8facc0754bec4 /tools
parentselftests: forwarding: Add a test for VLAN-unaware bridge (diff)
downloadlinux-dev-ff0162af9e7b2e33d4d40f41130c65ba416ba059.tar.xz
linux-dev-ff0162af9e7b2e33d4d40f41130c65ba416ba059.zip
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 <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/net/forwarding/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/forwarding/lib.sh b/tools/testing/selftests/net/forwarding/lib.sh
index 273511ef2b43..6ac8a98fa270 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