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

Commit 15157ecd authored by JW Wang's avatar JW Wang
Browse files

Uninstall test apps in-between tests

Don't leave an unclean state to the next test.

Bug: 187123877
Test: atest MultiUserRollbackTest#testMultipleUsers --rerun-until-failure 2
Change-Id: I6c680ef81131c8023013630219124f609c9d5bf7
parent 84b3b6fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -48,6 +48,8 @@ public class MultiUserRollbackTest extends BaseHostJUnit4Test {
    public void tearDown() throws Exception {
    public void tearDown() throws Exception {
        removeSecondaryUserIfNecessary();
        removeSecondaryUserIfNecessary();
        runPhaseForUsers("cleanUp", mOriginalUserId);
        runPhaseForUsers("cleanUp", mOriginalUserId);
        uninstallPackage("com.android.cts.install.lib.testapp.A");
        uninstallPackage("com.android.cts.install.lib.testapp.B");
    }
    }


    @Before
    @Before