Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f94bb2c

Browse files
committed
Merge in 'release/3.1' changes
2 parents fd23be0 + 2e0ae6d commit f94bb2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/HostActivation.Tests/FrameworkResolution/MultipleHives.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ private CommandResult RunTest(Func<RuntimeConfig, RuntimeConfig> runtimeConfig)
7979
SharedState.FrameworkReferenceApp,
8080
new TestSettings()
8181
.WithRuntimeConfigCustomizer(runtimeConfig)
82-
.WithEnvironment(Constants.TestOnlyEnvironmentVariables.GloballyRegisteredPath, SharedState.DotNetGlobalHive.BinPath),
82+
.WithEnvironment(Constants.TestOnlyEnvironmentVariables.GloballyRegisteredPath, SharedState.DotNetGlobalHive.BinPath)
83+
.WithEnvironment( // Redirect the default install location to an invalid location so that a machine-wide install is not used
84+
Constants.TestOnlyEnvironmentVariables.DefaultInstallPath,
85+
System.IO.Path.Combine(SharedState.DotNetMainHive.BinPath, "invalid")),
8386
// Must enable multi-level lookup otherwise multiple hives are not enabled
8487
multiLevelLookup: true);
8588
}

0 commit comments

Comments
 (0)