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

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

Change-Id: I0b32b7631d7f9ceade3e170d53ba068db924e85f
This commit is contained in:
Andrei-Valentin Onea
2020-09-30 12:31: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() {