Skip to content

Commit 7bec3d0

Browse files
committed
Print output even if empty
1 parent b9c9572 commit 7bec3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AppInstallerCLIE2ETests/Helpers/TestCommon.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,9 +1134,9 @@ private static RunCommandResult RunAICLICommandViaDirectProcess(string command,
11341134
TestContext.Error.WriteLine("Command run error. Error: " + result.StdErr);
11351135
}
11361136

1137-
if (TestSetup.Parameters.VerboseLogging && !string.IsNullOrEmpty(result.StdOut))
1137+
if (TestSetup.Parameters.VerboseLogging)
11381138
{
1139-
TestContext.Out.WriteLine("Command run output. Output:\n" + result.StdOut);
1139+
TestContext.Out.WriteLine("Command run output. Output:\n" + result.StdOut ?? "<null>");
11401140
}
11411141
}
11421142
else if (throwOnTimeout)

0 commit comments

Comments
 (0)