]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: don't depend on set element order
authorFlorian Westphal <fw@strlen.de>
Thu, 17 Sep 2015 21:23:25 +0000 (23:23 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 17 Sep 2015 22:00:24 +0000 (00:00 +0200)
commitc02107ef4e0fa49e5e57bfc8fb4e2b83654e8c68
tree55d2dde0102a384f8a1c66a71aebc320a677a71b
parent7658a537449bdad1e9c101abfb70556511ee204d
tests: don't depend on set element order

Pablo reported test failures because the order of returned set entries
is not deterministic.

This sorts set elements before comparision.
Patrick suggested to move ordering into libnftnl (since we could f.e.
also get duplicate entries due to how netlink dumps work), but thats a bit
more work.  Hence this quick workaround.

Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/regression/any/ct.t.payload
tests/regression/nft-test.py