Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit e958d82

Browse files
author
John Luo
committed
Add more chrome test logging
- fix an issue with tests running as root on VSTS
1 parent 395b681 commit e958d82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Kestrel.Transport.FunctionalTests/ChromeTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private void InitializeArgs()
4949
ShutdownLogPath = Path.Combine(ResolvedLogOutputDirectory, $"{ResolvedTestMethodName}.sd.json");
5050

5151
ChromeArgs = $"--headless " +
52+
$"--no-sandbox " +
5253
$"--disable-gpu " +
5354
$"--allow-insecure-localhost " +
5455
$"--enable-logging " +
@@ -109,6 +110,9 @@ private async Task<string> RunHeadlessChrome(string testUrl)
109110

110111
var headlessChromeProcess = Process.Start(chromeStartInfo);
111112
var chromeOutput = await headlessChromeProcess.StandardOutput.ReadToEndAsync();
113+
var chromeError = await headlessChromeProcess.StandardError.ReadToEndAsync();
114+
Logger.LogInformation($"Standard output: {chromeOutput}");
115+
Logger.LogInformation($"Standard error: {chromeError}");
112116

113117
headlessChromeProcess.WaitForExit();
114118

0 commit comments

Comments
 (0)