Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42c2baeb authored by Neal Nguyen's avatar Neal Nguyen
Browse files

Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils.

Change-Id: Ia50d58760b4cc1e222927be054c52cc3b2993395
parent b1fb5c30
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ public class PackageManagerHostTestUtils extends Assert {
     * @param pkgName Android application package for tests
     * @return the {@link CollectingTestRunListener}
     */
    private CollectingTestRunListener doRunTests(String pkgName) {
    private CollectingTestRunListener doRunTests(String pkgName) throws IOException {
        RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(
                pkgName, mDevice);
        CollectingTestRunListener listener = new CollectingTestRunListener();
@@ -134,7 +134,7 @@ public class PackageManagerHostTestUtils extends Assert {
     * @param pkgName Android application package for tests
     * @return true if every test passed, false otherwise.
     */
    public boolean runDeviceTestsDidAllTestsPass(String pkgName) {
    public boolean runDeviceTestsDidAllTestsPass(String pkgName) throws IOException {
        CollectingTestRunListener listener = doRunTests(pkgName);
        return listener.didAllTestsPass();
    }