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@xxxxxxxxx> --- tests/py/nft-test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py index 87e3d51ec2dd..7998914aa418 100755 --- a/tests/py/nft-test.py +++ b/tests/py/nft-test.py @@ -471,6 +471,10 @@ def set_check_element(rule1, rule2): ret = -1 pos1 = rule1.find("{") pos2 = rule2.find("{") + + if (cmp(rule1[:pos1], rule2[:pos2]) != 0): + return ret; + end1 = rule1.find("}") end2 = rule2.find("}") -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html