File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments