summaryrefslogtreecommitdiff
path: root/TEST_MAPPING
diff options
context:
space:
mode:
author Diwas Sharma <sdiwas@google.com> 2024-04-19 00:07:14 +0000
committer Diwas Sharma <sdiwas@google.com> 2024-04-19 00:07:14 +0000
commitfeeb6f4326f2dd599c965e500db5cd2ebbaf2c22 (patch)
tree3da384f4f3c36a5be3a9ae8a654c6d7c776b6230 /TEST_MAPPING
parent73c86337627d36b6b578c799a3c1fd9e12dd8231 (diff)
Add a dedicated Mainline Test Mapping group for MediaProvider
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 MediaProvider 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: If788c537446829c80a0250bfb43ae763f38139ee
Diffstat (limited to 'TEST_MAPPING')
-rw-r--r--TEST_MAPPING70
1 files changed, 70 insertions, 0 deletions
diff --git a/TEST_MAPPING b/TEST_MAPPING
index f703b6c56..85e7f5008 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -69,6 +69,76 @@
]
}
],
+ "mediaprovider-mainline-presubmit": [
+ {
+ "name": "MediaProviderTests",
+ "options": [
+ {
+ // Ignore the tests with @RunOnlyOnPostsubmit annotation
+ "exclude-annotation": "com.android.providers.media.library.RunOnlyOnPostsubmit"
+ },
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ },
+ {
+ "name": "CtsScopedStorageCoreHostTest",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ },
+ {
+ "name": "CtsScopedStorageHostTest",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ },
+ {
+ "name": "CtsScopedStorageDeviceOnlyTest",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ },
+ {
+ "name": "CtsScopedStorageBypassDatabaseOperationsTest",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ },
+ {
+ "name": "CtsScopedStorageGeneralTest",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ },
+ {
+ "name": "CtsScopedStorageRedactUriTest",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ },
+ {
+ "name": "CtsMediaProviderTranscodeTests",
+ "options": [
+ {
+ "exclude-annotation": "androidx.test.filters.FlakyTest"
+ }
+ ]
+ }
+ ],
"presubmit": [
{
"name": "MediaProviderTests",