Merge "Move tests with reboot to @LargetTest suite" into sc-dev am: 506284e2f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14936974 Change-Id: I63cff0d5a19a51223d79518b200be6ff85726bcc
This commit is contained in:
@@ -139,6 +139,7 @@ public class StagedInstallInternalTest extends BaseHostJUnit4Test {
|
|||||||
* Tests that duplicate packages in apk-in-apex and apk should fail to install.
|
* Tests that duplicate packages in apk-in-apex and apk should fail to install.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
|
@LargeTest
|
||||||
public void testDuplicateApkInApexShouldFail() throws Exception {
|
public void testDuplicateApkInApexShouldFail() throws Exception {
|
||||||
pushTestApex();
|
pushTestApex();
|
||||||
runPhase("testDuplicateApkInApexShouldFail_Commit");
|
runPhase("testDuplicateApkInApexShouldFail_Commit");
|
||||||
@@ -290,6 +291,7 @@ public class StagedInstallInternalTest extends BaseHostJUnit4Test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@LargeTest
|
||||||
public void testOrphanedStagingDirectoryGetsCleanedUpOnReboot() throws Exception {
|
public void testOrphanedStagingDirectoryGetsCleanedUpOnReboot() throws Exception {
|
||||||
//create random directories in /data/app-staging folder
|
//create random directories in /data/app-staging folder
|
||||||
getDevice().enableAdbRoot();
|
getDevice().enableAdbRoot();
|
||||||
@@ -305,6 +307,7 @@ public class StagedInstallInternalTest extends BaseHostJUnit4Test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@LargeTest
|
||||||
public void testFailStagedSessionIfStagingDirectoryDeleted() throws Exception {
|
public void testFailStagedSessionIfStagingDirectoryDeleted() throws Exception {
|
||||||
// Create a staged session
|
// Create a staged session
|
||||||
runPhase("testFailStagedSessionIfStagingDirectoryDeleted_Commit");
|
runPhase("testFailStagedSessionIfStagingDirectoryDeleted_Commit");
|
||||||
|
|||||||
Reference in New Issue
Block a user