Commit 2c15d66d authored by Ilia Mirkin's avatar Ilia Mirkin

nv-report: deal with before/after lists being different

Signed-off-by: Ilia Mirkin's avatarIlia Mirkin <>
parent 77dabdef
......@@ -97,12 +97,14 @@ def main(argv):
# produce hurt/helped comparisons.
before = analyze(argv[1])
after = analyze(argv[2])
keys = before.stats.keys()
assert set(after.stats.keys()) == set(keys)
keys = set(before.stats.keys()) | set(after.stats.keys())
helped = Stat()
hurt = Stat()
for key in keys:
if key not in after.stats or key not in before.stats:
print "Missing", key
a = after.stats[key]
b = before.stats[key]
if a != b:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment