From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nft] tests: shell: type_route_chain: use in-tree nftables, not system-wide one
Date: Tue, 7 Oct 2025 22:26:51 +0200 [thread overview]
Message-ID: <20251007202655.23599-1-fw@strlen.de> (raw)
Switch this to $NFT, which contains the locally-compiled binary.
Signed-off-by: Florian Westphal <fw@strlen.de>
---
tests/shell/testcases/packetpath/type_route_chain | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/shell/testcases/packetpath/type_route_chain b/tests/shell/testcases/packetpath/type_route_chain
index b4052fd90393..6459451d48b5 100755
--- a/tests/shell/testcases/packetpath/type_route_chain
+++ b/tests/shell/testcases/packetpath/type_route_chain
@@ -133,7 +133,7 @@ echo -e "\nTest ipv6 dscp reroute"
ip -6 -n $C route add default via ${ip6_r2_br1} dev c_br1 table 100
ip -6 -n $C rule add dsfield 0x08 pref 1010 table 100
assert_pass "Add ipv6 dscp policy routing rule"
-ip netns exec $C nft -f - <<-EOF
+ip netns exec $C $NFT -f - <<-EOF
table inet outgoing {
chain output_route {
type route hook output priority filter; policy accept;
@@ -151,7 +151,7 @@ echo -e "\nTest ipv4 dscp reroute"
ip -n $C route add default via ${ip4_r2_br1} dev c_br1 table 100
ip -n $C rule add dsfield 0x08 pref 1010 table 100
assert_pass "Add ipv4 dscp policy routing rule"
-ip netns exec $C nft -f - <<-EOF
+ip netns exec $C $NFT -f - <<-EOF
table inet outgoing {
chain output_route {
type route hook output priority filter; policy accept;
@@ -169,7 +169,7 @@ echo -e "\nTest ipv4 fwmark reroute"
ip -n $C route add default via ${ip4_r2_br1} dev c_br1 table 100
ip -n $C rule add fwmark 0x0100 lookup 100
assert_pass "Add ipv4 fwmark policy routing rule"
-ip netns exec $C nft -f - <<-EOF
+ip netns exec $C $NFT -f - <<-EOF
table inet outgoing {
chain output_route {
type route hook output priority filter; policy accept;
@@ -187,7 +187,7 @@ echo -e "\nTest ipv6 fwmark reroute"
ip -6 -n $C route add default via ${ip6_r2_br1} dev c_br1 table 100
ip -6 -n $C rule add fwmark 0x0100 lookup 100
assert_pass "Add ipv6 fwmark policy routing rule"
-ip netns exec $C nft -f - <<-EOF
+ip netns exec $C $NFT -f - <<-EOF
table inet outgoing {
chain output_route {
type route hook output priority filter; policy accept;
--
2.49.1
reply other threads:[~2025-10-07 20:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251007202655.23599-1-fw@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).