File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,10 @@ public void Add(IConfig config)
261
261
columnHidingRules . AddRange ( config . GetColumnHidingRules ( ) ) ;
262
262
Options |= config . Options ;
263
263
BuildTimeout = GetBuildTimeout ( BuildTimeout , config . BuildTimeout ) ;
264
- AutomaticBaselineMode = config . AutomaticBaselineMode ;
264
+ if ( config . AutomaticBaselineMode != AutomaticBaselineMode . None )
265
+ {
266
+ AutomaticBaselineMode = config . AutomaticBaselineMode ;
267
+ }
265
268
}
266
269
267
270
/// <summary>
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ public Summary(
73
73
74
74
private static BenchmarkCase GetFastestBenchmarkCase ( ImmutableArray < BenchmarkReport > reports )
75
75
{
76
- if ( reports . Any ( ) && reports . All ( r => r . BenchmarkCase . Config . AutomaticBaselineMode == AutomaticBaselineMode . Fastest ) )
76
+ var baselineReport = reports . Where ( r => r . BenchmarkCase . Config . AutomaticBaselineMode != AutomaticBaselineMode . None ) . LastOrDefault ( ) ;
77
+ if ( baselineReport != null && baselineReport . BenchmarkCase . Config . AutomaticBaselineMode == AutomaticBaselineMode . Fastest )
77
78
{
78
79
var fastestReport = reports . First ( ) ;
79
80
if ( fastestReport . ResultStatistics != null )
You can’t perform that action at this time.
0 commit comments