Skip to content

Commit

Permalink
Yet again... Trying output again...
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Dec 17, 2021
1 parent 7029636 commit 36efcc6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions code/DeltaKustoFileIntegrationTest/IntegrationTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,20 @@ protected async virtual Task<int> RunMainAsync(params string[] args)

await process.WaitForExitAsync(ct);

var outputs = await process.StandardOutput.ReadToEndAsync();
var errors = await process.StandardError.ReadToEndAsync();

if (!string.IsNullOrWhiteSpace(outputs))
{
Console.WriteLine("Outputs:");
Console.WriteLine(outputs);
}
if (!string.IsNullOrWhiteSpace(errors))
{
Console.WriteLine("Errors:");
Console.WriteLine(errors);
}

return process.ExitCode;
}
else
Expand Down

0 comments on commit 36efcc6

Please sign in to comment.