diff options
author | Florian Westphal <fw@strlen.de> | 2019-01-02 17:10:36 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-01-02 23:22:44 +0100 |
commit | dafac7d528de0890b82f943fc818ccb7a82fca7d (patch) | |
tree | abd00dd15ac418f0afaa28a12873c095e98a8fb7 /tests/shell | |
parent | 1e224c1399236cb5f93b53b4cebe7944237ad204 (diff) |
rule: fix object listing when no table is given
'nft list quotas' would not print anything at all anymore.
Fixes: 88456a7ef01172 ("rule: list only the table containing object")
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
-rwxr-xr-x | tests/shell/testcases/listing/0014objects_0 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/shell/testcases/listing/0014objects_0 b/tests/shell/testcases/listing/0014objects_0 index dcfe2e6f..20f68406 100755 --- a/tests/shell/testcases/listing/0014objects_0 +++ b/tests/shell/testcases/listing/0014objects_0 @@ -15,6 +15,13 @@ $NFT add quota test https-quota 25 mbytes $NFT add ct helper test cthelp { type \"sip\" protocol tcp \; } $NFT add table test-ip +GET="$($NFT list quotas)" +if [ "$EXPECTED" != "$GET" ] ; then + DIFF="$(which diff)" + [ -x $DIFF ] && $DIFF -u <(echo "$EXPECTED") <(echo "$GET") + exit 1 +fi + GET="$($NFT list quota test https-quota)" if [ "$EXPECTED" != "$GET" ] ; then DIFF="$(which diff)" |