summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorChad Versace <chad.versace@intel.com>2015-09-02 10:31:27 -0700
committerChad Versace <chad.versace@intel.com>2015-09-02 10:34:22 -0700
commit4ff4356014ba667f6ffba10c8b7709aceb55eb46 (patch)
treefc006b5e188b58d86898b828b125c3b30c37373d /misc
parent40ea9f476a7a17ac347b0529f9606b395165ed14 (diff)
crucible-report: Allow each run's set of tests to differ
crucible-report crashed with an assertion if the two run's set of tests differed. This made it impossible to compare results from two Crucible revisions if tests were added/deleted/renamed between those revisions.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/crucible-report10
1 files changed, 4 insertions, 6 deletions
diff --git a/misc/crucible-report b/misc/crucible-report
index d952dd3..315e142 100755
--- a/misc/crucible-report
+++ b/misc/crucible-report
@@ -68,16 +68,14 @@ if len(sys.argv) < 3:
run1 = parse_results(sys.argv[1])
run2 = parse_results(sys.argv[2])
-# The report is only valid if both runs have the same set of tests.
-assert run1.keys() == run2.keys()
-
num_tests = len(run1.keys())
fixed = 0
regressions = 0
-for name in run1.keys():
- status1 = run1[name]
- status2 = run2[name]
+for name in set(run1.keys()) | set(run2.keys()):
+ # If a test wasn't run, consider it skipped.
+ status1 = run1.get(name, 'skip')
+ status2 = run2.get(name, 'skip')
if status1 == status2:
continue