Merge "Fix compat change CTS test flakiness" am: bb0db1d243 am: 3d1cfa54d6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440635

Change-Id: I611aae09d53d4b81b00f91a0edf08c9c83fa12b8
This commit is contained in:
Andrei-Valentin Onea
2020-09-30 13:07:11 +00:00
committed by Automerger Merge Worker

View File

@@ -107,7 +107,10 @@ class PlatformCompatCommandNotInstalledTest {
fun ParcelFileDescriptor.text() = FileReader(fileDescriptor).readText()
@After
fun resetIdentity() = uiAutomation.dropShellPermissionIdentity()
fun resetChangeIdAndIdentity() {
command("am compat reset $TEST_CHANGE_ID $TEST_PKG")
uiAutomation.dropShellPermissionIdentity()
}
@Test
fun execute() {