diff options
-rwxr-xr-x | tools/testing/selftests/net/netfilter/nft_interface_stress.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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 - <<EOF +wildcard_prep() { + ip netns exec $nsr nft -f - <<EOF table ip t { flowtable ft_wild { hook ingress priority 0 @@ -105,7 +106,9 @@ table ip t { } } EOF -if [[ $? -ne 0 ]]; then +} + +if ! wildcard_prep; then echo "SKIP wildcard tests: not supported by host's nft?" else for ((i = 0; i < 100; i++)); do |