]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/shell: Fix warning from awk call
authorPhil Sutter <phil@nwl.cc>
Fri, 7 Jun 2019 17:25:26 +0000 (19:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Jun 2019 22:04:24 +0000 (00:04 +0200)
Syntax passed to awk in that one testcase caused a warning, fix the
syntax.

Fixes: e0a9aad024809 ("tests: shell: fix tests for deletion via handle attribute")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/sets/0028delete_handle_0

index 626d51bc2cbb23a0d3e64759dbf7a068277ca660..4e8b3228f6052af9d2b22c4e4edf758db918f3a8 100755 (executable)
@@ -7,7 +7,7 @@ $NFT add set test-ip y { type inet_service \; timeout 3h45s \;}
 $NFT add set test-ip z { type ipv4_addr\; flags constant , interval\;}
 $NFT add set test-ip c {type ipv4_addr \; flags timeout \; elements={192.168.1.1 timeout 10s, 192.168.1.2 timeout 30s} \;}
 
-set_handle=$($NFT list ruleset -a | awk '/set\ c/{print $NF}')
+set_handle=$($NFT list ruleset -a | awk '/set c/{print $NF}')
 $NFT delete set test-ip handle $set_handle
 
 EXPECTED="table ip test-ip {