]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: use binary defined by run-tests.sh
authorZhongqiu Duan <dzq.aishenghu0@gmail.com>
Thu, 3 Jul 2025 13:57:17 +0000 (13:57 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Jul 2025 14:04:58 +0000 (16:04 +0200)
Remove hardcoded binary in testcases/transactions/handle_bad_family.

Fixes: aa44b61a560d ("tests: shell: check for removing table via handle with incorrect family")
Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com>
tests/shell/testcases/transactions/handle_bad_family

index 592241890a69b4ed22cd07c35e22f860e8bf8244..c9a723d7edcd4bf85c47a3f9e760752146facea4 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/bash
 
-NFT=nft
-
 HANDLE=$($NFT -a -e add table ip x | cut -d '#' -f 2 | awk '{ print $2 }' | head -1)
 
 # should fail