Fix publish test for 32-bit environments.
Ensure the correct DOTNET_ROOT variable is set for the apphost being run.
This commit is contained in:
parent
da2b1b90ec
commit
8205dd4a15
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
|
|||
var outputProgram = Path.Combine(outputDirectory.FullName, $"{testAppName}{Constants.ExeSuffix}");
|
||||
|
||||
var command = new TestCommand(outputProgram);
|
||||
command.Environment["DOTNET_ROOT"]= new RepoDirectoriesProvider().DotnetRoot;
|
||||
command.Environment[Environment.Is64BitProcess ? "DOTNET_ROOT" : "DOTNET_ROOT(x86)"] =
|
||||
new RepoDirectoriesProvider().DotnetRoot;
|
||||
|
||||
command.ExecuteWithCapturedOutput()
|
||||
.Should()
|
||||
|
|
Loading…
Reference in a new issue