Add more chrome test logging
- fix an issue with tests running as root on VSTS
This commit is contained in:
parent
395b681348
commit
e958d82584
|
|
@ -49,6 +49,7 @@ namespace Interop.FunctionalTests
|
||||||
ShutdownLogPath = Path.Combine(ResolvedLogOutputDirectory, $"{ResolvedTestMethodName}.sd.json");
|
ShutdownLogPath = Path.Combine(ResolvedLogOutputDirectory, $"{ResolvedTestMethodName}.sd.json");
|
||||||
|
|
||||||
ChromeArgs = $"--headless " +
|
ChromeArgs = $"--headless " +
|
||||||
|
$"--no-sandbox " +
|
||||||
$"--disable-gpu " +
|
$"--disable-gpu " +
|
||||||
$"--allow-insecure-localhost " +
|
$"--allow-insecure-localhost " +
|
||||||
$"--enable-logging " +
|
$"--enable-logging " +
|
||||||
|
|
@ -109,6 +110,9 @@ namespace Interop.FunctionalTests
|
||||||
|
|
||||||
var headlessChromeProcess = Process.Start(chromeStartInfo);
|
var headlessChromeProcess = Process.Start(chromeStartInfo);
|
||||||
var chromeOutput = await headlessChromeProcess.StandardOutput.ReadToEndAsync();
|
var chromeOutput = await headlessChromeProcess.StandardOutput.ReadToEndAsync();
|
||||||
|
var chromeError = await headlessChromeProcess.StandardError.ReadToEndAsync();
|
||||||
|
Logger.LogInformation($"Standard output: {chromeOutput}");
|
||||||
|
Logger.LogInformation($"Standard error: {chromeError}");
|
||||||
|
|
||||||
headlessChromeProcess.WaitForExit();
|
headlessChromeProcess.WaitForExit();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue