Skip to content

Commit

Permalink
feat(process_reports): add merge preset
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Nov 6, 2023
1 parent 69c1391 commit 87abee3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions moz-webgpu-cts/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ enum Subcommand {

#[derive(Clone, Copy, Debug, ValueEnum)]
enum ReportProcessingPreset {
Merge,
ResetContradictory,
ResetAll,
}
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 87abee3

Please sign in to comment.