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

Commit 79958bdb authored by David Saff's avatar David Saff Committed by Automerger Merge Worker
Browse files

Merge "Use SysuiTestCase#runShellCommand." into tm-qpr-dev am: c92260f2 am: 291d3c4b

parents 5d65824a 291d3c4b
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.util.function.BooleanSupplier;

@@ -148,8 +149,12 @@ public class GlobalActionsImeTest extends SysuiTestCase {
        return false;
    }

    private static void executeShellCommand(String cmd) {
        InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand(cmd);
    private void executeShellCommand(String cmd) {
        try {
            runShellCommand(cmd);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    /**