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>
ret = -1
pos1 = rule1.find("{")
pos2 = rule2.find("{")
+
+ if (cmp(rule1[:pos1], rule2[:pos2]) != 0):
+ return ret;
+
end1 = rule1.find("}")
end2 = rule2.find("}")