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 2, 2023
1 parent 8d7e0a5 commit fe0f962
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 @@ -512,6 +513,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 fe0f962

Please sign in to comment.