Fix win7 test again (#1187)
This commit is contained in:
parent
d7ad4c79ee
commit
e6330ab19b
|
|
@ -345,14 +345,18 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting.IIS
|
||||||
.RequiredElement("applicationPools")
|
.RequiredElement("applicationPools")
|
||||||
.RequiredElement("add");
|
.RequiredElement("add");
|
||||||
|
|
||||||
var environmentVariables = pool
|
if (DeploymentParameters.EnvironmentVariables.Any())
|
||||||
.GetOrAdd("environmentVariables");
|
|
||||||
|
|
||||||
foreach (var tuple in DeploymentParameters.EnvironmentVariables)
|
|
||||||
{
|
{
|
||||||
environmentVariables
|
var environmentVariables = pool
|
||||||
.GetOrAdd("add", "name", tuple.Key)
|
.GetOrAdd("environmentVariables");
|
||||||
.SetAttributeValue("value", tuple.Value);
|
|
||||||
|
foreach (var tuple in DeploymentParameters.EnvironmentVariables)
|
||||||
|
{
|
||||||
|
environmentVariables
|
||||||
|
.GetOrAdd("add", "name", tuple.Key)
|
||||||
|
.SetAttributeValue("value", tuple.Value);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RunServerConfigActions(config, contentRoot);
|
RunServerConfigActions(config, contentRoot);
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,8 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
||||||
|
|
||||||
protected ApplicationDeployer CreateDeployer(IISDeploymentParameters parameters)
|
protected ApplicationDeployer CreateDeployer(IISDeploymentParameters parameters)
|
||||||
{
|
{
|
||||||
if (!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable))
|
if (parameters.ServerType == ServerType.IISExpress &&
|
||||||
|
!parameters.EnvironmentVariables.ContainsKey(DebugEnvironmentVariable))
|
||||||
{
|
{
|
||||||
parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
|
parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue