forward packaged commands test outputs to console

This commit is contained in:
Andrew Stanton-Nurse 2016-02-16 13:37:19 -08:00
parent e72391fd3a
commit d526b08a8e

View file

@ -163,7 +163,12 @@ namespace Microsoft.DotNet.Cli.Build
// Test the apps
foreach (var dir in Directory.EnumerateDirectories(consumers))
{
var result = dotnet.Exec("hello").WorkingDirectory(dir).CaptureStdOut().CaptureStdErr().Execute();
var result = dotnet.Exec("hello").WorkingDirectory(dir)
.ForwardStdErr()
.ForwardStdOut()
.CaptureStdOut()
.CaptureStdErr()
.Execute();
result.EnsureSuccessful();
if (!string.Equals("Hello", result.StdOut.Trim(), StringComparison.Ordinal))
{