Skip to content

Commit 9022ea7

Browse files
committed
dumping adb log to the main console log - Android
1 parent 7794ee6 commit 9022ea7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Microsoft.DotNet.XHarness.Android/AdbRunner.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ public bool TryDumpAdbLog(string outputFilePath, string filterSpec = "")
154154
Directory.CreateDirectory(Path.GetDirectoryName(outputFilePath) ?? throw new ArgumentNullException(nameof(outputFilePath)));
155155
File.WriteAllText(outputFilePath, result.StandardOutput);
156156
_log.LogInformation($"Wrote current ADB log to {outputFilePath}");
157+
// The adb log is not directly accessible.
158+
// Hence, we duplicate the log to the main console log to simplify the UX of failure investigation.
159+
_log.LogInformation($"ADB log output:{Environment.NewLine}{result.StandardOutput}");
157160
return true;
158161
}
159162
}

0 commit comments

Comments
 (0)