Skip to content

Commit

Permalink
[xharness] Fix main log parsing by not requiring it to come from a fi…
Browse files Browse the repository at this point in the history
…le. (#9258)

Not all types of logs have files, but all types of logs have a reader (or will
have soon due to PR #9257).
  • Loading branch information
rolfbjarne authored and mandel-macaque committed Oct 21, 2020
1 parent 740a12e commit 6110664
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void GetCrashReason (int pid, ILog crashLog, out string crashReason)
// return if the tcp connection with the device failed
async Task<bool> TcpConnectionFailed ()
{
using var reader = new StreamReader (mainLog.FullPath);
using var reader = mainLog.GetReader ();
string line;
while ((line = await reader.ReadLineAsync ()) != null) {
if (line.Contains ("Couldn't establish a TCP connection with any of the hostnames")) {
Expand Down

0 comments on commit 6110664

Please sign in to comment.