HDMICEC: Update LogHelper
Since logcat doesn't clear reliably, test should check for the latest
log entries.
Test: atest HdmiCecRemoteControlPassThroughTest
Bug: 159691675
Change-Id: I3664e4f89bd662b69d7f430622a9646b8d632955
diff --git a/hostsidetests/hdmicec/src/android/hdmicec/cts/LogHelper.java b/hostsidetests/hdmicec/src/android/hdmicec/cts/LogHelper.java
index b194bb9..a7692f38 100644
--- a/hostsidetests/hdmicec/src/android/hdmicec/cts/LogHelper.java
+++ b/hostsidetests/hdmicec/src/android/hdmicec/cts/LogHelper.java
@@ -51,7 +51,6 @@
String line = in.nextLine();
if (line.startsWith("I/" + tag)) {
testString = line.split(":")[1].trim();
- break;
}
}
device.executeAdbCommand("logcat", "-c");
@@ -90,7 +89,6 @@
Arrays.asList(in.nextLine().split(":")[1].trim().split(", "));
mSupportedAudioFormats =
Lists.transform(mFormatsLine, fl -> Integer.parseInt(fl));
- break;
}
}
}