diff --git a/moz-webgpu-cts/src/main.rs b/moz-webgpu-cts/src/main.rs index e79e8b5..0befb8d 100644 --- a/moz-webgpu-cts/src/main.rs +++ b/moz-webgpu-cts/src/main.rs @@ -238,6 +238,8 @@ enum UpdateExpectedPreset { #[value(alias("same-build"))] Merge, ResetAll, + /// Sets only reported results + Set, } impl From for process_reports::ReportProcessingPreset { @@ -246,6 +248,7 @@ impl From for process_reports::ReportProcessingPreset { UpdateExpectedPreset::ResetContradictory => Self::ResetContradictoryOutcomes, UpdateExpectedPreset::Merge => Self::MergeOutcomes, UpdateExpectedPreset::ResetAll => Self::ResetAllOutcomes, + UpdateExpectedPreset::Set => Self::SetNewOutcomes, } } } diff --git a/moz-webgpu-cts/src/process_reports.rs b/moz-webgpu-cts/src/process_reports.rs index fd84e68..b8532b9 100644 --- a/moz-webgpu-cts/src/process_reports.rs +++ b/moz-webgpu-cts/src/process_reports.rs @@ -63,6 +63,7 @@ pub(crate) enum ReportProcessingPreset { ResetContradictoryOutcomes, MergeOutcomes, ResetAllOutcomes, + SetNewOutcomes, } #[derive(Debug, Default)] @@ -136,6 +137,10 @@ fn reconcile( Some(rep) => meta | rep, None => meta, }, + ReportProcessingPreset::SetNewOutcomes => |meta, rep| match rep { + Some(rep) => rep, + None => meta, + }, }; ExpandedPropertyValue::from_query(|platform, build_profile| { @@ -452,6 +457,7 @@ pub(crate) fn process_reports( log::warn!("removing metadata after {msg}"); return None; } + ReportProcessingPreset::SetNewOutcomes => {} } } @@ -525,6 +531,7 @@ pub(crate) fn process_reports( log::warn!("removing metadata after {msg}"); return None; } + ReportProcessingPreset::SetNewOutcomes => {} } }