From 87abee3c6c8ae7d35b49b39254f16179f761a15f Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 1 Nov 2023 16:24:24 -0400 Subject: [PATCH] feat(process_reports): add `merge` preset --- moz-webgpu-cts/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moz-webgpu-cts/src/main.rs b/moz-webgpu-cts/src/main.rs index c98a864..f350980 100644 --- a/moz-webgpu-cts/src/main.rs +++ b/moz-webgpu-cts/src/main.rs @@ -70,6 +70,7 @@ enum Subcommand { #[derive(Clone, Copy, Debug, ValueEnum)] enum ReportProcessingPreset { + Merge, ResetContradictory, ResetAll, } @@ -505,6 +506,10 @@ fn run(cli: Cli) -> ExitCode { rep.filter(|rep| !meta.is_superset(rep)).unwrap_or(meta) } } + ReportProcessingPreset::Merge => |meta, rep| match rep { + Some(rep) => meta | rep, + None => meta, + }, }; normalize(