Convert Libcoretest to use TestInfo
Updated due to base class being updated.
Test: unit tests
Bug: 145527876
Change-Id: Ibbda754e42dae9f4a896e45e7a3cc7168c182e44
diff --git a/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/LibcoreTest.java b/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/LibcoreTest.java
index 980315a..12131e5 100644
--- a/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/LibcoreTest.java
+++ b/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/LibcoreTest.java
@@ -20,6 +20,7 @@
import com.android.tradefed.config.Option;
import com.android.tradefed.device.DeviceNotAvailableException;
+import com.android.tradefed.invoker.TestInformation;
import com.android.tradefed.log.LogUtil.CLog;
import com.android.tradefed.result.ITestInvocationListener;
import com.android.tradefed.testtype.AndroidJUnitTest;
@@ -55,7 +56,7 @@
* {@inheritDoc}
*/
@Override
- public void run(ITestInvocationListener listener) throws DeviceNotAvailableException {
+ public void run(TestInformation testInfo, ITestInvocationListener listener) throws DeviceNotAvailableException {
List<String> coreExpectations = getCoreExpectations();
if (!coreExpectations.isEmpty()) {
addInstrumentationArg(INSTRUMENTATION_ARG_NAME, ArrayUtil.join(",", coreExpectations));
@@ -70,7 +71,7 @@
"Setting --class and --method to null to avoid conflict with --test-package "
+ "option.");
}
- super.run(listener);
+ super.run(testInfo, listener);
}
private List<String> getCoreExpectations() throws DeviceNotAvailableException {