Skip to content

Commit 0205f22

Browse files
fix(process_reports): don't panic on missing reported entries with OnSkipOnly::Ignore (#177)
2 parents f7e0119 + b26a997 commit 0205f22

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

moz-webgpu-cts/src/process_reports.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,10 @@ pub(crate) fn process_reports(
521521
&mut |meta_props, reported, key| {
522522
let (platform, build_profile) = key;
523523
(match on_skip_only {
524-
OnSkipOnly::Ignore => reported[&platform][&build_profile] != skip,
524+
OnSkipOnly::Ignore => reported
525+
.get(&platform)
526+
.and_then(|r| r.get(&build_profile))
527+
.is_none_or(|ex| ex != &skip),
525528
OnSkipOnly::Reconcile => true,
526529
}) && should_update_expected.test(meta_props, reported, key)
527530
},

0 commit comments

Comments
 (0)