From 6fc028afb01a15d51a6d74a1b71b287a37ee1f5d Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Tue, 2 Jan 2018 13:46:20 -0800 Subject: [PATCH] Attempt to fix travis again --- .../IntegrationTests/BuildIntegrationTest.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIntegrationTest.cs index fda02c0836..b838503e58 100644 --- a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/BuildIntegrationTest.cs @@ -3,6 +3,7 @@ using System.IO; using System.Threading.Tasks; +using Microsoft.DotNet.PlatformAbstractions; using Xunit; namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests @@ -19,7 +20,12 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests Assert.FileExists(result, OutputPath, "SimpleMvc.dll"); Assert.FileExists(result, OutputPath, "SimpleMvc.PrecompiledViews.dll"); - Assert.BuildOutputContainsLine(result, $"SimpleMvc -> {Path.Combine(Path.GetFullPath(Project.DirectoryPath), OutputPath, "SimpleMvc.PrecompiledViews.dll")}"); + if (RuntimeEnvironment.OperatingSystemPlatform != Platform.Darwin) + { + // GetFullPath on OSX doesn't work well in travis. We end up computing a different path than will + // end up in the MSBuild logs. + Assert.BuildOutputContainsLine(result, $"SimpleMvc -> {Path.Combine(Path.GetFullPath(Project.DirectoryPath), OutputPath, "SimpleMvc.PrecompiledViews.dll")}"); + } } [Fact]