selftests: netfilter: exit on invalid parameters
authorFabian Frederick <fabf@skynet.be>
Sun, 23 Aug 2020 18:15:59 +0000 (20:15 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 Aug 2020 18:11:59 +0000 (20:11 +0200)
commita7bf670ebe192120cbe0a0ab6448baad6fbf7983
tree473b597b6cf6fca51f0332ae9b8d1fe7de8f94aa
parentda2f849e89ed621f3e0688ec5ba92725ed9f0f92
selftests: netfilter: exit on invalid parameters

exit script with comments when parameters are wrong during address
addition. No need for a message when trying to change MTU with lower
values: output is self-explanatory.
Use short testing sequence to avoid shellcheck warnings
(suggested by Stefano Brivio).

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/nft_flowtable.sh