Better logging to help debug test failure (#2576)
This commit is contained in:
parent
51868b4dc0
commit
f93f67a53a
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
TimeSpan? timeout = null,
|
TimeSpan? timeout = null,
|
||||||
MSBuildProcessKind msBuildProcessKind = MSBuildProcessKind.Dotnet)
|
MSBuildProcessKind msBuildProcessKind = MSBuildProcessKind.Dotnet)
|
||||||
{
|
{
|
||||||
timeout = timeout ?? TimeSpan.FromSeconds(60);
|
timeout = timeout ?? TimeSpan.FromSeconds(120);
|
||||||
|
|
||||||
var processStartInfo = new ProcessStartInfo()
|
var processStartInfo = new ProcessStartInfo()
|
||||||
{
|
{
|
||||||
|
|
@ -77,7 +77,7 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
|
||||||
|
|
||||||
// This is a timeout.
|
// This is a timeout.
|
||||||
process.Kill();
|
process.Kill();
|
||||||
throw new TimeoutException($"command '${process.StartInfo.FileName} {process.StartInfo.Arguments}' timed out after {timeout}.");
|
throw new TimeoutException($"command '${process.StartInfo.FileName} {process.StartInfo.Arguments}' timed out after {timeout}. Output: {output.ToString()}");
|
||||||
});
|
});
|
||||||
|
|
||||||
var waitTask = Task.Run(() =>
|
var waitTask = Task.Run(() =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue