From a4ae44459406c53058e2468d64c41259e8b1246b Mon Sep 17 00:00:00 2001 From: Praburaj Date: Mon, 9 Jun 2014 20:18:55 -0700 Subject: [PATCH] Enabling CoreCLR variation of the test Value of the KRE_DEFAULT_LIB of the 'k test' process was flowing into Helios resulting in an exception. As the test is always running on desktop clr, the value of this variable always points to the desktop KRE path resulting in the exception. This fix will fix the issue. --- test/E2ETests/DeploymentUtility.cs | 2 ++ test/E2ETests/SmokeTests.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/E2ETests/DeploymentUtility.cs b/test/E2ETests/DeploymentUtility.cs index f030c35a1d..80683793d6 100644 --- a/test/E2ETests/DeploymentUtility.cs +++ b/test/E2ETests/DeploymentUtility.cs @@ -48,6 +48,8 @@ namespace E2ETests string applicationPath = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, APP_RELATIVE_PATH)); //Tweak the %PATH% to the point to the right KREFLAVOR Environment.SetEnvironmentVariable("PATH", SwitchPathToKreFlavor(kreFlavor)); + //To avoid the KRE_DEFAULT_LIB of the test process flowing into Helios, set it to empty + Environment.SetEnvironmentVariable("KRE_DEFAULT_LIB", string.Empty); if (hostType == HostType.Helios) { diff --git a/test/E2ETests/SmokeTests.cs b/test/E2ETests/SmokeTests.cs index 9304b1ec04..b0711d9a22 100644 --- a/test/E2ETests/SmokeTests.cs +++ b/test/E2ETests/SmokeTests.cs @@ -18,7 +18,7 @@ namespace E2ETests [Theory] [InlineData(HostType.Helios, KreFlavor.DesktopClr, "http://localhost:5001/")] [InlineData(HostType.SelfHost, KreFlavor.DesktopClr, "http://localhost:5002/")] - //[InlineData(HostType.Helios, KreFlavor.CoreClr, "http://localhost:5001/")] + [InlineData(HostType.Helios, KreFlavor.CoreClr, "http://localhost:5001/")] [InlineData(HostType.SelfHost, KreFlavor.CoreClr, "http://localhost:5002/")] public void SmokeTestSuite(HostType hostType, KreFlavor kreFlavor, string applicationBaseUrl) {