Disable tests on non-Windows due to bugs related to .NET Core 2.1

https://github.com/dotnet/corefx/issues/23496
https://github.com/dotnet/cli/issues/7501
This commit is contained in:
Daniel Plaisted 2017-08-23 10:41:37 -07:00
parent a463a34ac5
commit b461e75524
3 changed files with 6 additions and 3 deletions

View file

@ -42,7 +42,8 @@ namespace Microsoft.DotNet.Tests.ArgumentForwarding
/// This is a critical scenario for the driver. /// This is a critical scenario for the driver.
/// </summary> /// </summary>
/// <param name="testUserArgument"></param> /// <param name="testUserArgument"></param>
[Theory] // This test is "Windows only" for now due to https://github.com/dotnet/corefx/issues/23496
[WindowsOnlyTheory]
[InlineData(@"""abc"" d e")] [InlineData(@"""abc"" d e")]
[InlineData(@"""ábc"" d é")] [InlineData(@"""ábc"" d é")]
[InlineData(@"""abc"" d e")] [InlineData(@"""abc"" d e")]

View file

@ -21,9 +21,10 @@
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="$(PlatformAbstractionsVersion)"/> <PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="$(PlatformAbstractionsVersion)"/>
</ItemGroup> </ItemGroup>
<!-- Disabled on non-Windows due to https://github.com/dotnet/corefx/issues/23496 -->
<Target Name="PrecompileScript" <Target Name="PrecompileScript"
BeforeTargets="Build" BeforeTargets="Build"
Condition=" '$(IsCrossTargetingBuild)' != 'true' "> Condition=" '$(IsCrossTargetingBuild)' != 'true' And '$(OS)' == 'Windows_NT'">
<Exec Command="$(DotnetInOutputDirectory) publish ../ArgumentsReflector/ArgumentsReflector.csproj --output $(MSBuildThisFileDirectory)/$(OutputPath)" /> <Exec Command="$(DotnetInOutputDirectory) publish ../ArgumentsReflector/ArgumentsReflector.csproj --output $(MSBuildThisFileDirectory)/$(OutputPath)" />
</Target> </Target>

View file

@ -108,7 +108,8 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
" path: 'lib/netstandard1.3/NuGet.Configuration.dll'"); " path: 'lib/netstandard1.3/NuGet.Configuration.dll'");
} }
[Fact] // Windows only for now due to https://github.com/dotnet/cli/issues/7501
[WindowsOnlyFact]
public void ItPublishesAnAppWithMultipleProfiles() public void ItPublishesAnAppWithMultipleProfiles()
{ {
var testAppName = "MultiDependentProject"; var testAppName = "MultiDependentProject";