Merge "Fix compat change CTS test flakiness"

This commit is contained in:
Andrei-Valentin Onea
2020-09-30 12:13:24 +00:00
committed by Gerrit Code Review

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() {