Skip to content

Commit 6ec42a1

Browse files
committed
Unify main and appOutputLogs for iOS devices
1 parent def226f commit 6ec42a1

File tree

1 file changed

+6
-2
lines changed
  • src/Microsoft.DotNet.XHarness.Apple/AppOperations

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,15 @@ private async Task RunDeviceTests(
361361
// We need to check for MT1111 (which means that mlaunch won't wait for the app to exit)
362362
IFileBackedLog aggregatedLog = Log.CreateReadableAggregatedLog(_mainLog, testReporter.CallbackLog);
363363

364+
// The app output log is not directly accessible.
365+
// Hence, we duplicate the log to the main console log to simplify the UX of failure investigation
366+
IFileBackedLog aggregatedLogAppOutput = Log.CreateReadableAggregatedLog(_mainLog, appOutputLog);
367+
364368
var result = await RunAndWatchForAppSignal(() => _processManager.ExecuteCommandAsync(
365369
mlaunchArguments,
366370
aggregatedLog,
367-
appOutputLog,
368-
appOutputLog,
371+
aggregatedLogAppOutput,
372+
aggregatedLogAppOutput,
369373
timeout,
370374
envVars,
371375
cancellationToken: cancellationToken));

0 commit comments

Comments
 (0)