Fix compat change CTS test flakiness

Cleanup overrides in the PlatformCompatCommandNotInstalledTest test.

Test: atest PlatformCompatCommandNotInstalledTest
Test: adb shell dumpsys platform_compat | grep override # is empty
Bug: 169235095
Change-Id: Ibd9f2801e8b4c571dca49f0682a8bc3b17ffd545
This commit is contained in:
Andrei Onea
2020-09-29 17:42:32 +01:00
parent 378fa1b4c2
commit 34a78c50b0

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