From 4ccf7b090b47d83645d6de5800096da310f38d87 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Wed, 25 Mar 2015 09:57:03 -0700 Subject: [PATCH] Fixing test helpers The command to execute tests have changed to dnx . test. As a result the path to dnx.exe cannot be retrieved from Environment.CommandLineArgs(). Changing the way to obtain path to dnx.exe. --- test/E2ETests/Common/DeploymentUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/E2ETests/Common/DeploymentUtility.cs b/test/E2ETests/Common/DeploymentUtility.cs index 5946c518d6..e6d971b4bb 100644 --- a/test/E2ETests/Common/DeploymentUtility.cs +++ b/test/E2ETests/Common/DeploymentUtility.cs @@ -260,7 +260,7 @@ namespace E2ETests private static string SwitchPathToRuntimeFlavor(RuntimeFlavor runtimeFlavor, RuntimeArchitecture runtimeArchitecture, ILogger logger) { - var runtimePath = Environment.GetCommandLineArgs().First(); + var runtimePath = Process.GetCurrentProcess().MainModule.FileName; logger.LogInformation(string.Empty); logger.LogInformation("Current runtime path is : {0}", runtimePath);