From 028595d80c287ba09b84563ce378d17dd29fb717 Mon Sep 17 00:00:00 2001 From: Ella Hathaway <67609881+ellahathaway@users.noreply.github.com> Date: Mon, 15 Apr 2024 12:35:17 -0700 Subject: [PATCH] [SDK Diff Tests] Update exclusion file before baseline assertion (#19465) --- .../SdkContentTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/SdkContentTests.cs b/src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/SdkContentTests.cs index 78de8c159..585e2f33c 100644 --- a/src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/SdkContentTests.cs +++ b/src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/SdkContentTests.cs @@ -43,11 +43,11 @@ public class SdkContentTests : SdkTests WriteTarballFileList(Config.MsftSdkTarballPath, msftFileListingFileName, isPortable: true, MsftSdkType, exclusionsHelper); WriteTarballFileList(Config.SdkTarballPath, sbFileListingFileName, isPortable: false, SourceBuildSdkType, exclusionsHelper); + exclusionsHelper.GenerateNewBaselineFile("FileList"); + string diff = BaselineHelper.DiffFiles(msftFileListingFileName, sbFileListingFileName, OutputHelper); diff = RemoveDiffMarkers(diff); BaselineHelper.CompareBaselineContents("MsftToSbSdkFiles.diff", diff, OutputHelper, Config.WarnOnSdkContentDiffs); - - exclusionsHelper.GenerateNewBaselineFile("FileList"); } [ConditionalFact(typeof(SdkContentTests), nameof(IncludeSdkContentTests))]