summaryrefslogtreecommitdiff
path: root/framework-s
diff options
context:
space:
mode:
author Diwas Sharma <sdiwas@google.com> 2024-04-19 00:23:55 +0000
committer Diwas Sharma <sdiwas@google.com> 2024-04-19 00:23:55 +0000
commit92f9817b0cb46cae6663d6795b30fd5ac0b1694c (patch)
tree9164a3ef4e0add50ec576208f0c7611096aae91d /framework-s
parentd4b121d78da6110e7317029ea78bf8b24f37e2d0 (diff)
Add a dedicated Mainline Test Mapping group for PermissionController
Test of *all* Mainline modules are currently configured in a single `mainline-presubmit` Test Mapping group. This requires that users indicate the module to install in every entry and is quite tedious. The above approach also adds overhead due to installing, checking for, and uninstalling Mainline modules between test module executions. This eats up precious presubmit time and gets runtimes close to violating the SLO. This change moves all PermissionController Mainline module tests into a dedicated Test Mapping group that installs the Mainline module once before executing all test modules. This also simplifies the configuration syntax by no longer requiring brackets that indicate the, now implicit, Mainline module. Bug: 328102821 Test: presubmit checks Change-Id: Id7abaaa4096a4afe2175e79e629f59e84588dda4
Diffstat (limited to 'framework-s')
-rw-r--r--framework-s/java/android/app/role/TEST_MAPPING17
1 files changed, 17 insertions, 0 deletions
diff --git a/framework-s/java/android/app/role/TEST_MAPPING b/framework-s/java/android/app/role/TEST_MAPPING
index 01d04bea0..46b148e68 100644
--- a/framework-s/java/android/app/role/TEST_MAPPING
+++ b/framework-s/java/android/app/role/TEST_MAPPING
@@ -26,6 +26,23 @@
]
}
],
+ "permission-mainline-presubmit": [
+ {
+ "name": "CtsRoleTestCases",
+ "options": [
+ // TODO(b/238677748): These two tests currently fails on R base image
+ {
+ "exclude-filter": "android.app.role.cts.RoleManagerTest#openDefaultAppListThenIsNotDefaultAppInList"
+ },
+ {
+ "exclude-filter": "android.app.role.cts.RoleManagerTest#removeSmsRoleHolderThenPermissionIsRevoked"
+ },
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ }
+ ],
"postsubmit": [
{
"name": "CtsRoleTestCases"