[SDK Diff Tests] Update exclusion file before baseline assertion (#19465)

This commit is contained in:
Ella Hathaway 2024-04-15 12:35:17 -07:00 committed by GitHub
parent eed5184764
commit 028595d80c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))]