Check if device is online before starting 16kb test
Test: atest -c Enable16KbTest Bug: 390535191 Change-Id: I32cc404f8e84fba0e90ecb5b801d98908242292d
This commit is contained in:
@@ -51,7 +51,12 @@ public class Enable16KbTest extends BaseHostJUnit4Test {
|
|||||||
@Test
|
@Test
|
||||||
@AppModeFull
|
@AppModeFull
|
||||||
public void enable16KbToggle() throws Exception {
|
public void enable16KbToggle() throws Exception {
|
||||||
assertTrue(isPackageInstalled(APP_PACKAGE));
|
// Wait for 2 mins device to be online
|
||||||
|
getDevice().waitForDeviceOnline(120000);
|
||||||
|
if (!isPackageInstalled(APP_PACKAGE)) {
|
||||||
|
//If test app has failed for some reason, retry installation
|
||||||
|
installTestApp();
|
||||||
|
}
|
||||||
|
|
||||||
// Check if developer option is enabled otherwise exit
|
// Check if developer option is enabled otherwise exit
|
||||||
getDevice().enableAdbRoot();
|
getDevice().enableAdbRoot();
|
||||||
|
Reference in New Issue
Block a user