From: Phil Sutter Date: Tue, 27 May 2025 09:41:17 +0000 (+0200) Subject: selftests: netfilter: Fix skip of wildcard interface test X-Git-Tag: v6.16-rc1~132^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6da5f1b4b4a06ebd3af1510ebd3ecf60a5037936;p=linux-2.6-block.git selftests: netfilter: Fix skip of wildcard interface test The script is supposed to skip wildcard interface testing if unsupported by the host's nft tool. The failing check caused script abort due to 'set -e' though. Fix this by running the potentially failing nft command inside the if-conditional pipe. Fixes: 73db1b5dab6f ("selftests: netfilter: Torture nftables netdev hooks") Signed-off-by: Phil Sutter Acked-by: Pablo Neira Ayuso Link: https://patch.msgid.link/20250527094117.18589-1-phil@nwl.cc Signed-off-by: Paolo Abeni --- diff --git a/tools/testing/selftests/net/netfilter/nft_interface_stress.sh b/tools/testing/selftests/net/netfilter/nft_interface_stress.sh index 11d82d11495e..5ff7be9daeee 100755 --- a/tools/testing/selftests/net/netfilter/nft_interface_stress.sh +++ b/tools/testing/selftests/net/netfilter/nft_interface_stress.sh @@ -97,7 +97,8 @@ kill $nft_monitor_pid kill $rename_loop_pid wait -ip netns exec $nsr nft -f - <