Removing the additional shared framework from the official stage2 build of the CLI. Instead, I also create a stage2 build with the legacy runtime so that we can continue to run tests tthat depend on it, but most importantly, we will be able to run backwards compatibility tests using it.

This commit is contained in:
Livar Cunha 2017-04-06 13:43:26 -07:00
parent 95a367136c
commit 772e838ff8
16 changed files with 203 additions and 68 deletions

View file

@ -128,7 +128,7 @@ namespace Microsoft.DotNet.Tests
.Execute()
.Should().Pass();
new DependencyToolInvokerCommand()
new DependencyToolInvokerCommand(DotnetUnderTest.WithLegacyRuntime)
.WithWorkingDirectory(testInstance.Root)
.WithEnvironmentVariable(CommandContext.Variables.Verbose, "true")
.ExecuteWithCapturedOutput($"tool-with-output-name", framework, "")
@ -250,7 +250,7 @@ namespace Microsoft.DotNet.Tests
.WithSourceFiles()
.WithRestoreFiles();
new DependencyContextTestCommand()
new DependencyContextTestCommand(DotnetUnderTest.WithLegacyRuntime)
.WithWorkingDirectory(testInstance.Root)
.Execute("")
.Should().Pass();
@ -417,7 +417,7 @@ namespace Microsoft.DotNet.Tests
class DependencyContextTestCommand : DotnetCommand
{
public DependencyContextTestCommand()
public DependencyContextTestCommand(string dotnetUnderTest) : base(dotnetUnderTest)
{
}