From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eva Kurchatova Date: Fri, 21 Aug 2026 18:18:46 +0300 Subject: [Devel] [PATCH vz10 3/4] selftests: netfilter: skip rpath.sh without the nft tool In-Reply-To: <20260821151850.796438-1-eva.kurchatova@virtuozzo.com> References: <20260821151850.796438-1-eva.kurchatova@virtuozzo.com> Message-ID: <20260821151850.796438-3-eva.kurchatova@virtuozzo.com> List-Id: 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 --- 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