[Devel] [PATCH hci-8.1 v3 4/5] selftests: netfilter: skip rpath.sh without the nft tool
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Sep 24 14:06:09 MSK 2026
From: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
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>
Reviewed-by: Konstantin Khorenko <khorenko 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 90cc212332350..5c71cb43ae0aa 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.43.0
More information about the Devel
mailing list