From a4d2d185e19b2bcb3fce96670edc60188f4e8eba Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 30 Dec 2014 13:30:36 -0800 Subject: [PATCH] Fixing tests on mono kestrel command is now lowercased. Passing the right case from tests. --- test/E2ETests/Common/DeploymentUtility.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/E2ETests/Common/DeploymentUtility.cs b/test/E2ETests/Common/DeploymentUtility.cs index 690e7dc205..095b0d7a03 100644 --- a/test/E2ETests/Common/DeploymentUtility.cs +++ b/test/E2ETests/Common/DeploymentUtility.cs @@ -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 {