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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user