From dafac7d528de0890b82f943fc818ccb7a82fca7d Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 2 Jan 2019 17:10:36 +0100 Subject: 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 --- tests/shell/testcases/listing/0014objects_0 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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)" -- cgit v1.2.3