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.
This commit is contained in:
Praburaj 2015-03-25 09:57:03 -07:00
parent c1a386dc45
commit 4ccf7b090b
1 changed files with 1 additions and 1 deletions

View File

@ -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);