From d1215d8fa15d2fa0327b4ef31a8f50301c0d6b2f Mon Sep 17 00:00:00 2001 From: Ajay Bhargav Baaskaran Date: Mon, 26 Mar 2018 18:13:04 -0700 Subject: [PATCH] Skip checking thumbprint of file in osx --- .../IntegrationTests/BuildIncrementalismTest.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIncrementalismTest.cs b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIncrementalismTest.cs index e208a95bc5..8c1e2f6df3 100644 --- a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIncrementalismTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIncrementalismTest.cs @@ -29,12 +29,20 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests var result = await DotnetMSBuild("Build"); var directoryPath = Path.Combine(result.Project.DirectoryPath, IntermediateOutputPath); - var filesToIgnore = new[] + var filesToIgnore = new List() { // These files are generated on every build. Path.Combine(directoryPath, "SimpleMvc.csproj.CopyComplete"), Path.Combine(directoryPath, "SimpleMvc.csproj.FileListAbsolute.txt"), }; + + if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + { + // There is some quirkiness with MsBuild in osx high sierra where it regenerates this file + // even though it shouldn't. This is tracked here https://github.com/aspnet/Razor/issues/2219. + filesToIgnore.Add(Path.Combine(directoryPath, "SimpleMvc.TagHelpers.input.cache")); + } + var files = Directory.GetFiles(directoryPath).Where(p => !filesToIgnore.Contains(p)); foreach (var file in files) {