Skip to content

Commit 039200b

Browse files
committed
ReportProcessingPreset::Set
1 parent 773f118 commit 039200b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ enum ReportProcessingPreset {
106106
#[value(alias("same-fx"))]
107107
Merge,
108108
ResetAll,
109+
/// Set's only reported results to new value
110+
Set,
109111
/// Resets only bad->good
110112
SetGood,
111113
}
@@ -630,6 +632,10 @@ fn run(cli: Cli) -> ExitCode {
630632
Some(rep) => meta | rep,
631633
None => meta,
632634
},
635+
ReportProcessingPreset::Set => |meta, rep| match rep {
636+
Some(rep) => rep,
637+
None => meta,
638+
},
633639
ReportProcessingPreset::SetGood => {
634640
|meta: Expectation<_>, rep: Option<Expectation<_>>| match rep {
635641
Some(rep) => {
@@ -684,7 +690,7 @@ fn run(cli: Cli) -> ExitCode {
684690

685691
if test_entry.reported.is_empty() {
686692
match preset {
687-
ReportProcessingPreset::Merge => {
693+
ReportProcessingPreset::Merge | ReportProcessingPreset::Set => {
688694
log::warn!("no entries found in reports for {test_path:?}")
689695
}
690696
ReportProcessingPreset::ResetAll

0 commit comments

Comments
 (0)