diff options
author | Andrei Onea <andreionea@google.com> | 2020-09-29 17:42:32 +0100 |
---|---|---|
committer | Andrei Onea <andreionea@google.com> | 2020-09-29 17:56:40 +0100 |
commit | 34a78c50b04e282a2220ed84713b29881fd8765a (patch) | |
tree | e7ce708ffa738470113d0c8aeb37d1be67aa3e7d | |
parent | 378fa1b4c2444fd5d276b2ef377c2e3d9588a82a (diff) |
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
-rw-r--r-- | tests/PlatformCompatGating/src/com/android/tests/gating/PlatformCompatCommandNotInstalledTest.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/PlatformCompatGating/src/com/android/tests/gating/PlatformCompatCommandNotInstalledTest.kt b/tests/PlatformCompatGating/src/com/android/tests/gating/PlatformCompatCommandNotInstalledTest.kt index 0f62c4fa66a3..e9227e94da98 100644 --- a/tests/PlatformCompatGating/src/com/android/tests/gating/PlatformCompatCommandNotInstalledTest.kt +++ b/tests/PlatformCompatGating/src/com/android/tests/gating/PlatformCompatCommandNotInstalledTest.kt @@ -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() { |