selftests: forwarding: Exit with error when missing dependencies
authorIdo Schimmel <[email protected]>
Sun, 11 Mar 2018 07:57:23 +0000 (09:57 +0200)
committerDavid S. Miller <[email protected]>
Mon, 12 Mar 2018 02:44:24 +0000 (22:44 -0400)
commitff0162af9e7b2e33d4d40f41130c65ba416ba059
tree4ea64fc7b3b584a7d526d45a65c8facc0754bec4
parent3a021ab56468db57868a9bc6721b7dfbec672a15
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 <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
tools/testing/selftests/net/forwarding/lib.sh