Adding "RequiresSpecificFrameworkFact("netcoreapp1.0")" to the 'ItRunsABackwardsVersionedTool' CLI test.

This commit is contained in:
John Beisner 2017-04-14 13:31:12 -07:00
parent f56306cc62
commit c51221d2f1
2 changed files with 4 additions and 7 deletions

View file

@ -4,8 +4,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<RuntimeFrameworkVersion>$(CLI_SharedFrameworkVersion)</RuntimeFrameworkVersion>
<DotnetCliToolTargetFramework>netcoreapp1.1</DotnetCliToolTargetFramework>
</PropertyGroup>
<ItemGroup>

View file

@ -78,9 +78,8 @@ namespace Microsoft.DotNet.Cli.Build.Tests
.Should().Pass();
}
[Theory]
[InlineData("netcoreapp1.0")]
public void ItRunsABackwardsVersionedTool(string target)
[RequiresSpecificFrameworkFact("netcoreapp1.0")] // https://github.com/dotnet/cli/issues/6087
public void ItRunsABackwardsVersionedTool()
{
var testInstance = TestAssets.Get("TestAppWithCLIToolReferences")
.CreateInstance()
@ -91,11 +90,11 @@ namespace Microsoft.DotNet.Cli.Build.Tests
new DotnetCommand(DotnetUnderTest.WithBackwardsCompatibleRuntimes)
.WithWorkingDirectory(testInstance.Root)
.ExecuteWithCapturedOutput("outputsframeworkversion-" + target)
.ExecuteWithCapturedOutput("outputsframeworkversion-netcoreapp1.0")
.Should()
.Pass()
.And
.HaveStdOutContaining(target);
.HaveStdOutContaining("netcoreapp1.0");
}
void ChangeProjectTargetFramework(FileInfo projectFile, string target)