From e958d8258445c2cda73c244d586f06ca6753be4e Mon Sep 17 00:00:00 2001 From: John Luo Date: Mon, 29 Oct 2018 16:33:09 -0700 Subject: [PATCH] Add more chrome test logging - fix an issue with tests running as root on VSTS --- test/Kestrel.Transport.FunctionalTests/ChromeTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Kestrel.Transport.FunctionalTests/ChromeTests.cs b/test/Kestrel.Transport.FunctionalTests/ChromeTests.cs index 89b16a8077..ca09e83405 100644 --- a/test/Kestrel.Transport.FunctionalTests/ChromeTests.cs +++ b/test/Kestrel.Transport.FunctionalTests/ChromeTests.cs @@ -49,6 +49,7 @@ namespace Interop.FunctionalTests ShutdownLogPath = Path.Combine(ResolvedLogOutputDirectory, $"{ResolvedTestMethodName}.sd.json"); ChromeArgs = $"--headless " + + $"--no-sandbox " + $"--disable-gpu " + $"--allow-insecure-localhost " + $"--enable-logging " + @@ -109,6 +110,9 @@ namespace Interop.FunctionalTests var headlessChromeProcess = Process.Start(chromeStartInfo); var chromeOutput = await headlessChromeProcess.StandardOutput.ReadToEndAsync(); + var chromeError = await headlessChromeProcess.StandardError.ReadToEndAsync(); + Logger.LogInformation($"Standard output: {chromeOutput}"); + Logger.LogInformation($"Standard error: {chromeError}"); headlessChromeProcess.WaitForExit();