diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2017-11-12 16:43:14 -0500 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2017-11-12 16:43:49 -0500 |
commit | 2c15d66d91d805b18274ddbe8cbaa76e1b18e97e (patch) | |
tree | 266e92398ba74789e62874a154edb731946405fe /nv-report.py | |
parent | 77dabdefac55465381591dae8a208317e9891ff5 (diff) |
nv-report: deal with before/after lists being different
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'nv-report.py')
-rw-r--r-- | nv-report.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nv-report.py b/nv-report.py index 7bd3356..bdc2093 100644 --- a/nv-report.py +++ b/nv-report.py @@ -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 + continue a = after.stats[key] b = before.stats[key] if a != b: |