Adding "RequiresSpecificFrameworkFact("netcoreapp1.0")" to the 'ItRunsABackwardsVersionedTool' CLI test.
This commit is contained in:
parent
f56306cc62
commit
c51221d2f1
2 changed files with 4 additions and 7 deletions
|
@ -4,8 +4,6 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||||
<RuntimeFrameworkVersion>$(CLI_SharedFrameworkVersion)</RuntimeFrameworkVersion>
|
|
||||||
<DotnetCliToolTargetFramework>netcoreapp1.1</DotnetCliToolTargetFramework>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -78,9 +78,8 @@ namespace Microsoft.DotNet.Cli.Build.Tests
|
||||||
.Should().Pass();
|
.Should().Pass();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[RequiresSpecificFrameworkFact("netcoreapp1.0")] // https://github.com/dotnet/cli/issues/6087
|
||||||
[InlineData("netcoreapp1.0")]
|
public void ItRunsABackwardsVersionedTool()
|
||||||
public void ItRunsABackwardsVersionedTool(string target)
|
|
||||||
{
|
{
|
||||||
var testInstance = TestAssets.Get("TestAppWithCLIToolReferences")
|
var testInstance = TestAssets.Get("TestAppWithCLIToolReferences")
|
||||||
.CreateInstance()
|
.CreateInstance()
|
||||||
|
@ -91,11 +90,11 @@ namespace Microsoft.DotNet.Cli.Build.Tests
|
||||||
|
|
||||||
new DotnetCommand(DotnetUnderTest.WithBackwardsCompatibleRuntimes)
|
new DotnetCommand(DotnetUnderTest.WithBackwardsCompatibleRuntimes)
|
||||||
.WithWorkingDirectory(testInstance.Root)
|
.WithWorkingDirectory(testInstance.Root)
|
||||||
.ExecuteWithCapturedOutput("outputsframeworkversion-" + target)
|
.ExecuteWithCapturedOutput("outputsframeworkversion-netcoreapp1.0")
|
||||||
.Should()
|
.Should()
|
||||||
.Pass()
|
.Pass()
|
||||||
.And
|
.And
|
||||||
.HaveStdOutContaining(target);
|
.HaveStdOutContaining("netcoreapp1.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChangeProjectTargetFramework(FileInfo projectFile, string target)
|
void ChangeProjectTargetFramework(FileInfo projectFile, string target)
|
||||||
|
|
Loading…
Reference in a new issue