[Devel] [PATCH vz10 v2 4/5] selftests: netfilter: skip rpath.sh without the nft tool
Eva Kurchatova
eva.kurchatova at virtuozzo.com
Tue Sep 1 02:45:32 MSK 2026
Every other netfilter test that needs nft checks for it. rpath.sh does
not, and without the tool it reports "nft IPv4 match not effective"
instead of skipping.
https://virtuozzo.atlassian.net/browse/VSTOR-139651
Feature: fix selftests
Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
tools/testing/selftests/net/netfilter/rpath.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/net/netfilter/rpath.sh b/tools/testing/selftests/net/netfilter/rpath.sh
index 90cc21233235..5c71cb43ae0a 100755
--- a/tools/testing/selftests/net/netfilter/rpath.sh
+++ b/tools/testing/selftests/net/netfilter/rpath.sh
@@ -3,6 +3,9 @@
source lib.sh
+checktool "nft --version" "run test without nft tool"
+checktool "ip -Version" "run test without ip tool"
+
# search for legacy iptables (it uses the xtables extensions
if iptables-legacy --version >/dev/null 2>&1; then
iptables='iptables-legacy'
--
2.55.0
More information about the Devel
mailing list