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

Commit 016e563e authored by JW Wang's avatar JW Wang
Browse files

Delete com.android.apex.cts.shim@2.apex

testAdbRollbackAppWaitsForStagedReady (added by ag/12361995) leaves
com.android.apex.cts.shim@2.apex in the data partition which causes
PackageManagerTest#testGetApplicationInfo_ApexSupported_MatchesApex
to fail.

This CL ensures APEX files in the data partition are cleaned up after
running the tests.

Bug: 166157914
Test: atest StagedInstallInternalTest PackageManagerTest
Change-Id: Ia23adcb91c3f9ebfa082f92221c16d2e57838e66
parent 2ba781a6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -84,7 +84,8 @@ public class StagedInstallInternalTest extends BaseHostJUnit4Test {
            Log.e(TAG, e);
        }
        deleteFiles("/system/apex/" + APK_IN_APEX_TESTAPEX_NAME + "*.apex",
                "/data/apex/active/" + APK_IN_APEX_TESTAPEX_NAME + "*.apex");
                "/data/apex/active/" + APK_IN_APEX_TESTAPEX_NAME + "*.apex",
                "/data/apex/active/" + SHIM_APEX_PACKAGE_NAME + "*.apex");
    }

    @Before