diff options
author | Phil Sutter <phil@nwl.cc> | 2019-06-07 19:25:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-06-08 00:04:24 +0200 |
commit | c145e3d0b07d60154449c1e54a064f9ab16e82fc (patch) | |
tree | 6ee918b3a8d7d6efc92fd92a0ea1c2b16be54555 | |
parent | b089c42f4ba806b93e16bae4e3963f12a33deaf3 (diff) |
tests/shell: Fix warning from awk call
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>
-rwxr-xr-x | tests/shell/testcases/sets/0028delete_handle_0 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/testcases/sets/0028delete_handle_0 b/tests/shell/testcases/sets/0028delete_handle_0 index 626d51bc..4e8b3228 100755 --- a/tests/shell/testcases/sets/0028delete_handle_0 +++ b/tests/shell/testcases/sets/0028delete_handle_0 @@ -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 { |