forward packaged commands test outputs to console
This commit is contained in:
parent
e72391fd3a
commit
d526b08a8e
1 changed files with 6 additions and 1 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue