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

Commit fbac4ca9 authored by Richard Uhler's avatar Richard Uhler
Browse files

Fix issues with RollbackTest

* Add missing permission needed in testBadUpdateRollback test.
* Re-enable testRollbackWithSplits test now that the build issues have
  been sorted out.

Bug: 127920549
Test: atest RollbackTest
Change-Id: I5bd70aea4f1ad0345d7a37e78c0f3b5ef0615ed1
parent cd187909
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ import android.util.Log;

import androidx.test.InstrumentationRegistry;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@@ -531,7 +530,6 @@ public class RollbackTest {
    /**
     * Test rollback of apks involving splits.
     */
    @Ignore("b/127520966 build issues with splits need to be sorted out")
    @Test
    public void testRollbackWithSplits() throws Exception {
        try {
@@ -827,6 +825,7 @@ public class RollbackTest {
            RollbackTestUtils.adoptShellPermissionIdentity(
                    Manifest.permission.INSTALL_PACKAGES,
                    Manifest.permission.DELETE_PACKAGES,
                    Manifest.permission.MANAGE_ROLLBACKS,
                    Manifest.permission.TEST_MANAGE_ROLLBACKS,
                    Manifest.permission.KILL_BACKGROUND_PROCESSES,
                    Manifest.permission.RESTART_PACKAGES);