Skip to content

Commit d0c1bda

Browse files
committed
unify main and appOutputLog for MacCatalyst
1 parent 414b29b commit d0c1bda

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Microsoft.DotNet.XHarness.Apple/AppOperations/AppRunnerBase.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,18 @@ protected async Task<ProcessExecutionResult> RunMacCatalystApp(
101101

102102
var logStreamScanToken = CaptureMacCatalystLog(appInformation, cancellationToken);
103103

104+
// The app output log is not directly accessible.
105+
// Hence, we duplicate the log to the main console log to simplify the UX of failure investigation.
106+
IFileBackedLog aggregatedAppOutputLog = Log.CreateReadableAggregatedLog(_mainLog, appOutputLog);
107+
104108
try
105109
{
106110
return await _processManager.ExecuteCommandAsync(
107111
"open",
108112
arguments,
109113
_mainLog,
110-
appOutputLog,
111-
appOutputLog,
114+
aggregatedAppOutputLog,
115+
aggregatedAppOutputLog,
112116
timeout,
113117
environmentVariables,
114118
cancellationToken);

0 commit comments

Comments
 (0)