Merge "Use SysuiTestCase#runShellCommand." into tm-qpr-dev
This commit is contained in:
@@ -49,6 +49,7 @@ import org.junit.Before;
|
|||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.function.BooleanSupplier;
|
import java.util.function.BooleanSupplier;
|
||||||
|
|
||||||
@@ -148,8 +149,12 @@ public class GlobalActionsImeTest extends SysuiTestCase {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void executeShellCommand(String cmd) {
|
private void executeShellCommand(String cmd) {
|
||||||
InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand(cmd);
|
try {
|
||||||
|
runShellCommand(cmd);
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user