Fixing tests on mono

kestrel command is now lowercased. Passing the right case from tests.
This commit is contained in:
Praburaj 2014-12-30 13:30:36 -08:00
parent e609602f2f
commit a4d2d185e1
1 changed files with 4 additions and 4 deletions

View File

@ -186,12 +186,13 @@ namespace E2ETests
var klrMonoManaged = Path.Combine(kreBin, "klr.mono.managed.dll");
var applicationHost = Path.Combine(kreBin, "Microsoft.Framework.ApplicationHost");
Console.WriteLine(string.Format("Executing command: {0} {1} {2} {3}", monoPath, klrMonoManaged, applicationHost, startParameters.ServerType.ToString()));
var commandName = startParameters.ServerType == ServerType.Kestrel ? "kestrel" : string.Empty;
Console.WriteLine(string.Format("Executing command: {0} {1} {2} {3}", monoPath, klrMonoManaged, applicationHost, commandName));
var startInfo = new ProcessStartInfo
{
FileName = monoPath,
Arguments = string.Format("{0} {1} {2}", klrMonoManaged, applicationHost, startParameters.ServerType.ToString()),
Arguments = string.Format("{0} {1} {2}", klrMonoManaged, applicationHost, commandName),
UseShellExecute = false,
CreateNoWindow = true,
RedirectStandardInput = true
@ -250,9 +251,8 @@ namespace E2ETests
private static Process StartSelfHost(StartParameters startParameters, string identityDbName)
{
Console.WriteLine(string.Format("Executing klr.exe --appbase {0} \"Microsoft.Framework.ApplicationHost\" {1}", startParameters.ApplicationPath, startParameters.ServerType.ToString()));
var commandName = startParameters.ServerType == ServerType.WebListener ? "web" : "kestrel";
Console.WriteLine(string.Format("Executing klr.exe --appbase {0} \"Microsoft.Framework.ApplicationHost\" {1}", startParameters.ApplicationPath, commandName));
var startInfo = new ProcessStartInfo
{