From 60bd88d261746fb83732362a85767840d4440338 Mon Sep 17 00:00:00 2001 From: piotrp Date: Mon, 28 Mar 2016 01:35:25 -0700 Subject: [PATCH] Make test windows-only --- test/dotnet.Tests/PackagedCommandTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/dotnet.Tests/PackagedCommandTests.cs b/test/dotnet.Tests/PackagedCommandTests.cs index 45d9f4868..2fc154a48 100644 --- a/test/dotnet.Tests/PackagedCommandTests.cs +++ b/test/dotnet.Tests/PackagedCommandTests.cs @@ -5,6 +5,7 @@ using System; using System.IO; using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Tools.Test.Utilities; +using System.Runtime.InteropServices; using Xunit; using FluentAssertions; @@ -48,11 +49,17 @@ namespace Microsoft.DotNet.Tests } } + // need conditional theories so we can skip on non-Windows [Theory] [InlineData(".NETStandardApp,Version=v1.5")] [InlineData(".NETFramework,Version=v4.5.1")] public void TestFrameworkSpecificDependencyToolsCanBeInvoked(string framework) { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return; + } + var appDirectory = Path.Combine(_testProjectsRoot, "AppWithDirectDependencyDesktopAndPortable"); new BuildCommand(Path.Combine(appDirectory, "project.json"))