Skip to contentSkip to conversation

tests: shell: type_route_chain: use in-tree nftables, not system-wide one

PATCH New Florian Westphal 1 participant 1 message Oct 7, 2025 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 tests: shell: type_route_chain: use in-tree nftables, not system-wide one

Switch this to $NFT, which contains the locally-compiled binary.

---
 tests/shell/testcases/packetpath/type_route_chain | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/shell/testcases/packetpath/type_route_chain +4 -4
index b4052fd90393..6459451d48b5 100755
@@ -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;
Signature · 1 line
2.49.1