Increase timeout for msbuild processes and added better logging

This commit is contained in:
Ajay Bhargav Baaskaran 2018-11-05 18:14:45 -08:00
parent d0c7d81336
commit fd4572874e
1 changed files with 2 additions and 2 deletions

View File

@ -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()
{ {
@ -76,7 +76,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(() =>