]> git.ipfire.org Git - thirdparty/nftables.git/commit
nft-test: check start of rule with sets too
authorFlorian Westphal <fw@strlen.de>
Sat, 31 Mar 2018 09:08:33 +0000 (11:08 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 31 Mar 2018 22:05:53 +0000 (00:05 +0200)
commitc5e24b8d94ead21e8c81315794f779850fd6b135
tree51280da8227ccca27147c7f47cc18090cbc172db
parenta8e6c43272eacbc819b6ef57ebf6a2297cfada72
nft-test: check start of rule with sets too

We special case rules with sets ({}) so set members are sorted properly.

But we failed to check start of rule:
input:  meta mark { 1, 2 } bar
expect: meta mark { 1, 2 } bar

We made sure 'bar' is equal in both input and expected output,
but we did not check start (before {).

This causes a gazillion of warnings, will fix in followup commit.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/py/nft-test.py