Skip checking thumbprint of file in osx
This commit is contained in:
parent
1e11b5fa95
commit
d1215d8fa1
|
|
@ -29,12 +29,20 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
var result = await DotnetMSBuild("Build");
|
var result = await DotnetMSBuild("Build");
|
||||||
|
|
||||||
var directoryPath = Path.Combine(result.Project.DirectoryPath, IntermediateOutputPath);
|
var directoryPath = Path.Combine(result.Project.DirectoryPath, IntermediateOutputPath);
|
||||||
var filesToIgnore = new[]
|
var filesToIgnore = new List<string>()
|
||||||
{
|
{
|
||||||
// These files are generated on every build.
|
// These files are generated on every build.
|
||||||
Path.Combine(directoryPath, "SimpleMvc.csproj.CopyComplete"),
|
Path.Combine(directoryPath, "SimpleMvc.csproj.CopyComplete"),
|
||||||
Path.Combine(directoryPath, "SimpleMvc.csproj.FileListAbsolute.txt"),
|
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));
|
var files = Directory.GetFiles(directoryPath).Where(p => !filesToIgnore.Contains(p));
|
||||||
foreach (var file in files)
|
foreach (var file in files)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue