diff options
author | Yuting Fang <yutingfang@google.com> | 2024-05-02 17:24:50 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-02 17:24:50 +0000 |
commit | b5e53f0db4e574dfd2e10cebfc0d049281848e7e (patch) | |
tree | 69c3a211536c29b5d0ee753a29147db0f0ee3f6b | |
parent | 27129116b251deb052db9eb38503f4172e70473c (diff) | |
parent | 34182774fba31923023998376dc4bc124a514c1c (diff) | |
download | cts-android14-tests-dev.tar.gz |
Merge "Fix for testPackageSignatures failure in full run" into android14-tests-devandroid14-tests-dev
-rw-r--r-- | tests/tests/appop/src/android/app/appops/cts/AttributionTest.kt | 1 | ||||
-rw-r--r-- | tests/tests/appop/src/android/app/appops/cts/RuntimeMessageCollectionTest.kt | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/tests/appop/src/android/app/appops/cts/AttributionTest.kt b/tests/tests/appop/src/android/app/appops/cts/AttributionTest.kt index def00ed2ea9..8ee509579bc 100644 --- a/tests/tests/appop/src/android/app/appops/cts/AttributionTest.kt +++ b/tests/tests/appop/src/android/app/appops/cts/AttributionTest.kt @@ -109,6 +109,7 @@ class AttributionTest { .isEqualTo(before.attributedOpEntries[ATTRIBUTION_3]!! .getLastAccessTime(OP_FLAGS_ALL)) } + runCommand("pm uninstall $PKG") } @Test diff --git a/tests/tests/appop/src/android/app/appops/cts/RuntimeMessageCollectionTest.kt b/tests/tests/appop/src/android/app/appops/cts/RuntimeMessageCollectionTest.kt index 079d7f489c9..89199ad51dd 100644 --- a/tests/tests/appop/src/android/app/appops/cts/RuntimeMessageCollectionTest.kt +++ b/tests/tests/appop/src/android/app/appops/cts/RuntimeMessageCollectionTest.kt @@ -22,6 +22,7 @@ import androidx.test.platform.app.InstrumentationRegistry import com.google.common.truth.Truth.assertThat import org.junit.Assert.fail import org.junit.Before +import org.junit.After; import org.junit.Test import java.lang.Thread.sleep @@ -49,6 +50,11 @@ class RuntimeMessageCollectionTest { installApk("CtsAppToCollect.apk") } + @After + fun uninstallTestApp() { + runCommand("pm uninstall $APP_PKG") + } + @Test fun collectAsyncStackTrace() { installApk("CtsAppToCollect.apk") |